tubeshowcase●920,148 videos♡ My collection 0
← Learn to Code

Learn to Code09:05

Center content without a container - the perfect fallback for Grid based layouts

Kevin Powell ↗

From the creator

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 Codepen: https://codepen.io/kevinpowell/pen/pQbpQN 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. Instagram: https://www.instagram.com/kevinpowell.co/ Twitter: https://twitter.com/KevinJPowell Codepen: https://codepen.io/kevinpowell/ Github: https://github.com/kevin-powell

Published 2018-11-21 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code