filmov
tv
Creating a nice layout CSS Grid layout using grid template areas
![preview_player](https://i.ytimg.com/vi/v5KzBPUEgGQ/maxresdefault.jpg)
Показать описание
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.
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.
---
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.
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.
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.
---
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.
Комментарии