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
Replying to @justvanrossum
@justvanrossum The CSS box model is very simple and intuitive but you need to read it first 馃おBTW z-index also doesn鈥檛 work if you don鈥檛 have position set on the element.

Oct 30, 2022 路 4:52 PM UTC

1
0
1
RepliesRelevant
Replying to @nedkamburov
@nedkamburov At my age, these things take a little longer to digest and internalize...
2
0
0
Replying to @justvanrossum
@justvanrossum You aren鈥檛 alone, Just
I鈥檇 rather be debugging shaders than css
1
0
2