Re:Full-Bleed Layout Using CSS Grid
by detaro on Tuesday October 06, 2020 @08:09AM
(#24696836)
Doesn't that run in the "ch depends on font and font-size" problem e.g. with headings vs paragraphs again if you don't use wrappers?
[ Parent
| on HN ]
Hmm, that’s definitely possible, but then I think we probably shouln’t be using that magic unit to begin with.
Why? It specifically exists to make things dependent on the font, and sizing text columns based on the size of the body text, and have other elements follow that, also makes sense.
Yes, but with it being dependent on the current font size, its a tad hard to use effectively.
You can make the container have a sensible weight to keep all elements within it, but you cannot have the children contain their own destiny in a consistent manner.