Avatar

No more specificity issues?! (or all new ones šŸ¤”) - A look at CSS Cascade Layers

By Kevin Powell on youtube.com

More about this content:

Cascade layers are pretty much here, so it's time to learn how they work! šŸ”— Links āœ… Stephanie Eckles article: https://www.smashingmagazine.com/2022/01/introduction-css-cascade-layers/ āœ… Bramus' article: https://www.bram.us/2021/09/15/the-future-of-css-cascade-layers-css-at-layer/ āœ… Una's video: https://www.youtube.com/watch?v=ilrPpSQJb3U āœ… My video on Specificity: https://youtu.be/c0kfcP_nD9E āŒš Timestamps 00:00 - Introduction 01:14 - Specificity issues 04:22 - Creating our first layer 05:16 - Traditional CSS layers 07:30 - CSS Layers are like sub-layers of the author layer 07:44 - What happens when something isn't in a layer? 08:07 - Creating multiple layers 11:04 - What happens when we use the same layer in two difference places 12:13 - Declaring the order first, then using them later 14:00 - !important flips things around #css -- Come hang out with other dev's in my Discord Community šŸ’¬ https://discord.gg/nTYCvrK Keep up to date with everything I'm up to āœ‰ https://www.kevinpowell.co/newsletter Come hang out with me live every Monday on Twitch! šŸ“ŗ https://www.twitch.tv/kevinpowellcss --- Help support my channel šŸ‘Øā€šŸŽ“ Get a course: https://www.kevinpowell.co/courses šŸ‘• Buy a shirt: https://teespring.com/stores/making-the-internet-awesome šŸ’– Support me on Patreon: https://www.patreon.com/kevinpowell --- My editor: VS Code - https://code.visualstudio.com/ --- 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, make sure to follow me on Instagram and Twitter. Twitter: https://twitter.com/KevinJPowell 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!

READ MORE
Visit