Gezinmeyi atla
Are you using position: absolute; to overlap elements?
0:00 / 0:50

Are you using position: absolute; to overlap elements?

Wes Bos

@wesbos449 B takipçi

X profili
3.703 beğeniİndirOrijinal gönderi

302.407 görüntüleme

Are you using position: absolute; to overlap elements? It's almost always better to Use CSS Grid instead!

11 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • Wes Bos profil fotoğrafı

    @wesbos

    Second video! Your questions + tips

    49 beğeni

  • Bruno Stasse profil fotoğrafı

    @brunostasse

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

    47 beğeni

  • Wes Bos profil fotoğrafı

    @wesbos

    👌😮‍💨 even better

    2 beğeni

  • trash profil fotoğrafı

    @trashh_dev

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

    35 beğeni

  • Wes Bos profil fotoğrafı

    @wesbos

    absolute: chad;

    38 beğeni

  • James Landrum profil fotoğrafı

    @JamesRLandrum

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

    15 beğeni

  • Wes Bos profil fotoğrafı

    @wesbos

    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

    16 beğeni

  • Caleb Porzio profil fotoğrafı

    @calebporzio

    My guy, this is fantastic

    6 beğeni

  • Wes Bos profil fotoğrafı

    @wesbos

    thanks my guy!

    2 beğeni

  • Alex Parra profil fotoğrafı

    @alexpds45

    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.

    5 beğeni

  • Wes Bos profil fotoğrafı

    @wesbos

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

    8 beğeni