5 CSS tips every developer should know @KevinPowell
5 CSS tips every developer should know  @KevinPowell
Uploaded May 2025 | Updated September 2026, 2 weeks ago
A look at 5 useful CSS tips and tricks, like single-colour gradients, the user-select property, masks, escaping scroll containers, and more.

πŸ”— Links
βœ… Browser support for single color gradients: caniuse.com/mdn-css_types_gradient_conic-gradient_single_color_stop
βœ… Video on @property: youtu.be/U8NykwZNbGs
βœ… Salma’s post on creating a copy code button: whitep4nth3r.com/blog/how-to-build-a-copy-code-snippet-button/#the-html-and-some-preliminary-javascript-to-build-the-html
βœ… css-generators.com

⌚ Timestamps
00:00 - Introduction
00:35 - Single-colour gradients
05:25 - Second use case for single-colour gradients
06:50 - user-select
10:12 - the all property
14:24 - masks
17:40 - taking advantage of containing blocks to escape scroll containers
23:20 - anchor-positioning

#css

βœ‰ Keep up to date with everything I'm up to kevinpowell.co/newsletter
πŸ’¬ Come hang out with other devs in my Discord Community discord.gg/nTYCvrK
⭐ Are you a beginner? HTML & CSS for absolute beginners is for you: learn.kevinpowell.co
πŸŽ“ Start writing CSS with confidence with CSS Demystified: [https://cssdemystified.com](https://cssdemystified.com/)
πŸš€ Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/

---

Help support my channel
πŸ‘¨β€πŸŽ“ Get a course: kevinpowell.co/courses
πŸ‘• Buy a shirt: cottonbureau.com/people/kevin-powell
πŸ’– Support me on Patreon: patreon.com/kevinpowell or through YT memberships: youtube.com/@KevinPowell/join

---

πŸ§‘β€πŸ’» My editor: VS Code - code.visualstudio.com

🌈 My theme: One Dark Pro Var Night
πŸ”€ My font: Cascadia Code

---

I'm on some other places on the internet too!

If you'd like a behind the scenes and previews of what's coming up on my YouTube channel:

Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: codepen.io/kevinpowell
Github: github.com/kevin-powell

---

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
5 CSS tips every developer should knowCan I code up this UI in 10 minutes?Theres a better way to control stacking in CSSHow to ignore an element’s size (and why you’d want to)Breaking Through the ShadowDOM with Style Queries:has() is more than a parent selectorCSS properties that solve annoying problemsMedia queries might look very different soon.Named media query hackCreate this trendy blurry glass effect with CSS1 million subs!I challenge a CSS Magician to a CSS Battle!
Kevin Powell |

5 CSS tips every developer should know

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER