TIL that in CSS, if you want to position an item relative to its parent, you tell the parent to position relative and the child item to position absolute. 🤷 Noob life. (Mostly tweeting so I have a better chance of remembering next time I need it.)
1
1
9
The CSS box model is very simple and intuitive but you need to read it first 🤪BTW z-index also doesn’t work if you don’t have position set on the element.
1
1
Replying to @nedkamburov
At my age, these things take a little longer to digest and internalize...

Oct 30, 2022 · 5:36 PM UTC

Replying to @justvanrossum
You aren’t alone, Just
I’d rather be debugging shaders than css
1
2
I must say, the more I understand CSS, the more I enjoy making things with it. Despite wasting an hour yesterday because I didn't spot a missing comma...
1
1
Replying to @justvanrossum
Haha, don’t worry, it’s not the age. As the saying goes “CSS is easy to learn but hard to master”
1