Загрузка видео...

Не удалось загрузить видео

На главную

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

302,188 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 11

Фото профиля Wes Bos
Wes Bos2 лет назад

Second video! Your questions + tips

Фото профиля Bruno Stasse
Bruno Stasse2 лет назад

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

Фото профиля Wes Bos
Wes Bos2 лет назад

👌😮‍💨 even better

Фото профиля trash
trash2 лет назад

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

Фото профиля Wes Bos
Wes Bos2 лет назад

absolute: chad;

Фото профиля James Landrum
James Landrum2 лет назад

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

Фото профиля Wes Bos
Wes Bos2 лет назад

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
Caleb Porzio2 лет назад

My guy, this is fantastic

Фото профиля Wes Bos
Wes Bos2 лет назад

thanks my guy!

Фото профиля Alex Parra
Alex Parra2 лет назад

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
Wes Bos2 лет назад

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

Похожие видео