Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

302,062 Aufrufe • vor 1 Jahr •via X (Twitter)

11 Kommentare

Profilbild von Wes Bos
Wes Bosvor 1 Jahr

Second video! Your questions + tips

Profilbild von Bruno Stasse
Bruno Stassevor 1 Jahr

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

Profilbild von Wes Bos
Wes Bosvor 1 Jahr

👌😮‍💨 even better

Profilbild von trash
trashvor 1 Jahr

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

Profilbild von Wes Bos
Wes Bosvor 1 Jahr

absolute: chad;

Profilbild von James Landrum
James Landrumvor 1 Jahr

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

Profilbild von Wes Bos
Wes Bosvor 1 Jahr

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

Profilbild von Caleb Porzio
Caleb Porziovor 1 Jahr

My guy, this is fantastic

Profilbild von Wes Bos
Wes Bosvor 1 Jahr

thanks my guy!

Profilbild von Alex Parra
Alex Parravor 1 Jahr

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.

Profilbild von Wes Bos
Wes Bosvor 1 Jahr

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

Ähnliche Videos