Wes Bos on X: "Are you using position: absolute; to overlap el...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
!https://x.com/wesbos/status/1834242925401694490
Date: September 13, 2024
Image: Wes Bos (@wesbos) on X — Are you using position: absolute; to overlap elements?
It's almost always better to Use CSS Grid instead!" loading=“lazy”>
Wes Bos (@wesbos) on X Are you using position: absolute; to overlap elements? It's almost always better to Use CSS Grid instead! X (formerly Twitter) · x.com
This is a pretty incredible use of css grid to overlay items overtop of each other without needing to resort to position: absolute and the side effects that it brings.
```
.wrap {
display: grid;
& > * {
grid-row: 1;
grid-column: 1;
}
}
```