Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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

Wes Bos profil fotoğrafı
Wes Bos1 yıl önce

Second video! Your questions + tips

Bruno Stasse profil fotoğrafı
Bruno Stasse1 yıl önce

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

Wes Bos profil fotoğrafı
Wes Bos1 yıl önce

👌😮‍💨 even better

trash profil fotoğrafı
trash1 yıl önce

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

Wes Bos profil fotoğrafı
Wes Bos1 yıl önce

absolute: chad;

James Landrum profil fotoğrafı
James Landrum1 yıl önce

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

Wes Bos profil fotoğrafı
Wes Bos1 yıl önce

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

Caleb Porzio profil fotoğrafı
Caleb Porzio1 yıl önce

My guy, this is fantastic

Wes Bos profil fotoğrafı
Wes Bos1 yıl önce

thanks my guy!

Alex Parra profil fotoğrafı
Alex Parra1 yıl önce

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.

Wes Bos profil fotoğrafı
Wes Bos1 yıl önce

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

Benzer Videolar