kevinpowell

5 CSS tips every developer should know


Listen Later

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: https://caniuse.com/mdn-css_types_gradient_conic-gradient_single_color_stop
βœ… Video on @property: https://youtu.be/U8NykwZNbGs
βœ… Salma’s post on creating a copy code button: https://whitep4nth3r.com/blog/how-to-build-a-copy-code-snippet-button/#the-html-and-some-preliminary-javascript-to-build-the-html
βœ… https://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 https://www.kevinpowell.co/newsletter

πŸ’¬ Come hang out with other devs in my Discord Community https://discord.gg/nTYCvrK
⭐ Are you a beginner? HTML & CSS for absolute beginners is for you: https://learn.kevinpowell.co
πŸŽ“ Start writing CSS with confidence with CSS Demystified: https://cssdemystified.com
πŸš€ Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/

Help support my channel

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

πŸ§‘β€πŸ’» My editor: VS Code - https://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: https://codepen.io/kevinpowell/
Github: https://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!

...more
View all episodesView all episodes
Download on the App Store

kevinpowellBy