Are you using position: absolute; to overlap elements?
302,407 次观看
11 条评论
评论来自 X (Twitter) 上的原帖

@wesbos
Second video! Your questions + tips
49 个赞

@brunostasse
And you can make it more concise with grid-area: 1 / 1;
47 个赞

@wesbos
👌😮💨 even better
2 个赞

@trashh_dev
i’m using absolute like i’m coding in the stone ages
35 个赞

@wesbos
absolute: chad;
38 个赞

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

@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 个赞

@calebporzio
My guy, this is fantastic
6 个赞

@wesbos
thanks my guy!
2 个赞

@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 个赞

@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 个赞