
Author of the book "You don't need JavaScript". If you want all my tips and tricks about CSS, check my blog https://teapawt.net/t.co/bm4SG4Q2mK
Paris, Île-de-France
Joined January 2012
- Tweets414
- Following338
- Followers146
- Likes569
Want to know if your website could replace part of its code with modern HTML & CSS?
I built a small audit tools that does just that: cssradar.com/
it was even featured on @syntaxfm !!
2
29
Same card in the main column and in a narrow sidebar. A media query sees one width for both.
.wrapper { container-type: inline-size; }
@container (min-width: 30rem) {
.card { grid-template-columns: 1fr 1fr; }
}
Ask the container, not the screen.
Sound on.
3
45