You can make great layouts with both CSS Grid as well as Flexbox. However, when making article layouts with elements extending beyond the width of the main content, I've been using CSS Grid a lot lately.
In today's video I'll be showing you why this is my preferred approach. No more "left 50% and translateX(-50%)" to pull elements outside of the grid. Working with CSS Grid will make this so much easier.
✨ Become a PRO today via www.frontend.fyi/pro
🔗 Code, live playground and article here: www.frontend.fyi/v/using-css-...
Timestamps:
00:00 - Intro
00:20 - The article layout we'll be building
01:05 - How I used to build this before CSS grid
03:20 - Let's build this with CSS grid
08:26 - Making this responsive
12:48 - Outro
#frontend #css #html
7 июл 2024