4 ms·
How do you write your full bleed containers, and why do you prefer them?
by ihuman 6y ago
How do you write your full bleed containers, and why do you prefer them?
- LocalPCGuy 6y agoNot the original commenter, but you would just write the container as full bleed and constrain the elements with-in it. That way any elements not so constrained are by default full-bleed. I'm of mixed minds which I like better, generally I prefer less elements and less nesting when possible, but there are almost always going to be wrapping elements in any mildly complex site.
- neon_electro 6y agoI’m using Bootstrap’s approach of a `.container-fluid` class for a full-bleed container, and a `.container` class for the standard centered and fixed width container. I’m interested in applying CSS Grid as a progressive enhancement specifically targeting browsers supporting it, and keeping what I do today for browsers that don’t.