- 11 months
Sadly
position: top;is not valid css. It should say
position: absolute; bottom: 0px;Still funny though.
- some_guy@lemmy.sdf.orgEnglish11 months
You design people and your pedantry.
> /dev/nullfor you.Jk, you’re fine.
- bleistift2@sopuli.xyzEnglish11 months
Needed for the
.leaves’ absolute positioning to be relative to the tree, and not relative to the universe. - BleakBluets@lemmy.worldEnglish11 months
It’s so the
position: absolutefor.leavesworks relative to.tree. The implication is that.leavesis a descendant of.tree.position: absolutelooks for the nearest ancestor with a set position in order to determine its own positioning context. Otherwise the absolute positioning would basically be relative to the viewport. If theposition: relativewas missing, the leaves would be against the bottom edge of the image.edit: I mean
.leaves, not.branch
- 10 months
Saw this post about “CSS Gardening,” and I’m reminded of debugging my first responsive website. Did anyone else spend hours wrestling with margins and padding, only to realize it was a typo in the media query? I did! Now I meticulously check my syntax.