tubeshowcase●913,532 videos♡ My collection 0
← Learn to Code

Learn to Code35:11

Creating a nice layout CSS Grid layout using grid template areas

Kevin Powell ↗

From the creator

Continuing my dive into the CSS Grid, this week I take a look at grid template areas, and how they make laying out a design SUPER intuitive. I first set up my layout using grid-template-rows, grid-template-columns, and then finally grid-template-areas. Following that up with a simple card with another grid inside the layout, I then take a look at how we can combine all three of those properties into the single grid-template property. Honestly, grid template is a bit of magic and it makes me happy. Here is the Codepen from where I started if you want to follow along: https://codepen.io/kevinpowell/pen/mMqvMb And here is the finished layout on CodePen: https://codepen.io/kevinpowell/pen/rzGJBJ/ Hopefully once you're done with this video, as well as my previous one where I looked at naming our grid lines, you'll have a good understanding on how to use CSS Grid, and start to realize it's awesome potential. This is a real game changer in how we can approach layouts on the web guys! And if you've made it this far into reading the description, let me know with a comment saying 'the grid rocks my socks' to let me know! And one last note, if you're wondering how to make all of this responsive (or more responsive), @media is your answer. You can completely change a layout either by changing the grid-template-areas, or just keeping everything the same, but redefining your columns and rows. --- Support me on Patreon: https://www.patreon.com/kevinpowell I'm on some other places o

Published 2017-08-16 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code