I’ve been enjoying these little “You want…” style posts. Post titles like that are a little more… forceful for my normal taste, but I like the spirit of sharing a best practice that perhaps isn’t well-known-enough.
- Killian started it with “You want overflow: auto, not overflow: scroll.”
- I followed up with “You want minmax(10px, 1fr) not 1fr.”
- Bramus wrote “You want
:not(:focus):invalid
, not:invalid
.” - Andy didn’t use the title, but this fits the bill: “Add scroll margin to all elements which can be targeted.”
Got an idea along these lines? You should blog it! Here or elsewhere.
The post You want… appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
About us and this blog
We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.
Request a free quote
We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.
Subscribe to our newsletter!
More from our blog
See all posts Are you looking for great tips, tutorials, and hacks from experienced web…
Tobi Reif notes how the position of custom fonts set at very…
A wonderful post by Josh that both introduces CSS transitions and covers…
Are you looking for great tips, tutorials, and hacks from experienced web…
Sendbird is a service for helping you add social features to your…
I recently started working on a Progressive Web App (PWA) for a…
Do you want to learn how to display full-size images in WordPress?…
Team communication platforms are getting popular day by day, as more and…
No Comments
Recent Posts
- Introducing…Blog XChange! Contribute Your Knowledge To Our Blog And Get Hero Points Plus Links To Your Site February 26, 2021
- Ensuring the correct vertical position of large text February 26, 2021
- An Interactive Guide to CSS Transitions February 26, 2021