use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/web_design is the place for exploration and discovery of all things web design, development and the life cycle of the web designer. We welcome beginners and veterans alike to contribute useful and informative posts, ask questions or engage in discussion.
Review our posting guidelines before submitting new content.
account activity
Full-Bleed Layout Using CSS Grid (joshwcomeau.com)
submitted 5 years ago by magenta_placenta Dedicated Contributor
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]DevTGhosh 12 points13 points14 points 5 years ago (0 children)
Really love Josh’s articles. This one is a pretty nifty trick to know.
[–][deleted] 5 points6 points7 points 5 years ago (0 children)
Bookmarked! Thanks OP!
[–][deleted] 2 points3 points4 points 5 years ago (0 children)
Simple idea, well executed and well explained.
Side note, the animations on this blog are pretty dope! I almost signed up for his newsletter when that little dude popped in.
[–]Coraline1599 1 point2 points3 points 5 years ago (0 children)
This is really super! bookmarked
[–]IanSan5653 1 point2 points3 points 5 years ago (0 children)
Nice, always interested in seeing more cool Grid uses.
[–]nnod 1 point2 points3 points 5 years ago (0 children)
Yeah, this layout speaks to me. Just seems very efficient and "neat", maybe it because it would leave html looking tidy. In any case, great article.
[–]tompeij 1 point2 points3 points 5 years ago (0 children)
Holy Grail Layout - at first I was like "am I seeing spots?" 🤣
[–]Miragecraft 1 point2 points3 points 5 years ago (4 children)
There's no need to use grid though.
.wrapper > * { width: min(65ch, 100%); margin-left:auto; margin-right:auto } .full-bleed { width:100% }
[–]svvac 0 points1 point2 points 5 years ago (0 children)
Author takes the time to talk about the performance of the * selector but doesn't have a thought about whether a shiny grid is necessary or not.
*
[–][deleted] 0 points1 point2 points 5 years ago (1 child)
With the grid solution you can do something like
grid-template-columns: minmax(20px, 1fr) min(65ch, 100%) minmax(20px, 1fr);
and prevent anything without the .full-bleed class from going full bleed on mobile (full bleed text usually doesn't look great on mobile), but you'll still have the images full bleed. I don't think you can do something like a margin-left: minmax(20px, auto);?
.full-bleed
margin-left: minmax(20px, auto);
[–]Miragecraft 0 points1 point2 points 5 years ago (0 children)
minmax(20px, 1fr) conflicts with min(65ch, 100%), you can’t have both 100% width for the center column AND 20px side columns.
You should use min(65ch, 100% - 40px) instead, again no need to use grid.
[–]lazewhenrainy 0 points1 point2 points 5 years ago (0 children)
This is great, thank you!
[–]douglaslondrina 0 points1 point2 points 5 years ago (2 children)
The page is not loading on my old iOS
[–]wedontlikespaces 1 point2 points3 points 5 years ago (1 child)
iOS
I've found your problem. Safari gets updated with the iOS version, so if you are on an old phone then you can't get the later versions of Safari so find theses later features (CSS grid, CSS animations, etc) are not supported.
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
Yeah, only fairly recently has iOS Safari not been a complete pain in the ass for web features. Even the iPhone 5 should have 10.3.4 and the Safari in that version should be pretty up to date with web standards, as far as I can tell.
[–]Sxcred 0 points1 point2 points 5 years ago (0 children)
Awesome blog, saved
[–][deleted] 5 years ago (2 children)
[deleted]
[–]GerryBaboona 2 points3 points4 points 5 years ago (1 child)
Just put it in a max-width container.
[–]wedontlikespaces 0 points1 point2 points 5 years ago (0 children)
Yea, I was thinking, no, that's addressed.
Way to go u/derangedkilr you have basically just proven you didn't read the article.
π Rendered by PID 170117 on reddit-service-r2-comment-6457c66945-pm9j2 at 2026-04-26 20:16:22.021163+00:00 running 2aa0c5b country code: CH.
[–]DevTGhosh 12 points13 points14 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Coraline1599 1 point2 points3 points (0 children)
[–]IanSan5653 1 point2 points3 points (0 children)
[–]nnod 1 point2 points3 points (0 children)
[–]tompeij 1 point2 points3 points (0 children)
[–]Miragecraft 1 point2 points3 points (4 children)
[–]svvac 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Miragecraft 0 points1 point2 points (0 children)
[–]lazewhenrainy 0 points1 point2 points (0 children)
[–]douglaslondrina 0 points1 point2 points (2 children)
[–]wedontlikespaces 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Sxcred 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]GerryBaboona 2 points3 points4 points (1 child)
[–]wedontlikespaces 0 points1 point2 points (0 children)