A brilliant overview of all the weird edge-cases that exist with the CSS margin
attribute. Honestly, having used CSS for over a decade I'm not sure I've run into any of them before (maybe parent inheritance a couple of times?) so I'm still unconvinced by the call to abandon margin
in favour of spacer componentsΒ but I do agree that gap
is a generally more useful attribute to reach for.
- Source
- Link to Original π
- Published
- Categories
- HTML & CSS
- Tags
- margin, CSS, edge case, spacer, overview, guide
Explore Other Notes
β¬ Newer
Circles, networks, and the trust layer
There's a lot going on in this analysis of trust (or lack of it) online. Some parts I agree with, some I don't. It's interesting thinking about the early web in the context of naive communities with β¦
Older β‘
Favourite fonts of 2020
When ilt recommends a font, I listen. When they recommend a whole batch, I bookmark it for future reference π Particular favourites from a first β¦
- <p>A brilliant overview of all the weird edge-cases that exist with the CSS margin attribute. Honestly, having used CSS for over a decade I'm not sure I've run into any of them before (maybe parent β¦</p>
- Murray Champernowne