Containers are really useful, but now that Grid is a thing, it often becomes extra markup that we don’t really need. The only issue is, if we want to create a fallback for older browsers, we can run into problems.
Luckily, as Lea Verou has shown us (link to her book is down below), we can center content without a container, and it’s the perfect fallback for a CSS Grid based layout
This comes from Lea Verou’s CSS Secret’s book: http://shop.oreilly.com/product/0636920031123.do
CSS Tricks article on using Grid with IE – https://css-tricks.com/css-grid-in-ie-debunking-common-ie-grid-misconceptions/
I have a newsletter! https://www.kevinpowell.co/newsletter
New to Sass, or want to step up your game with it? I’ve got a course just for you: https://www.kevinpowell.co/learn-sass
My Code Editor: VS Code – https://code.visualstudio.com/
How my browser refreshes when I save: https://youtu.be/h24noHYsuGc
Support me on Patreon: https://www.patreon.com/kevinpowell
I’m on some other places on the internet too!
If you’d like a behind the scenes and previews of what’s coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.