Join Nostr
2024-05-21 18:58:59 UTC

Mayank on Nostr: one of my favorite uses of #CSS `:has()` is to change the grid layout based on what's ...

one of my favorite uses of #CSS `:has()` is to change the grid layout based on what's inside the grid

```
grid-template-areas: /* simple layout */

&:has(.thing) {
grid-template-areas: /* more complex layout */;
}
```