Video yükleniyor...
Video Yüklenemedi
Are you using position: absolute; to overlap elements? It's almost always better to Use CSS Grid instead!
302,042 görüntüleme • 1 yıl önce •via X (Twitter)
11 Yorum

Second video! Your questions + tips

And you can make it more concise with grid-area: 1 / 1;

👌😮💨 even better

i’m using absolute like i’m coding in the stone ages

absolute: chad;

It’s a hack but a hack that I love. And one that technically the layout engine is purposely written to support.

hah yeah, I'm not sure I'd even call it a hack - its a feature of CSS grid to have multiple items on grid rows/cols

My guy, this is fantastic

thanks my guy!

Cool demo! I dreamt of this back in 2017 And in 2020 posted it was possible with grid. There’s likely updates I need to make to that posts.

Awesome! I also included it in my course back then too. Just re-surfacing as I still don't see it used a ton
