Channel: Kevin Powell
Category: Education
Tags: css layerscsscss cascade layerscascade layerspecificityhtmltutorialfront-endkevin powellfrontendcss specificitycascade layers
Description: Cascade layers are pretty much here, so it's time to learn how they work! 🔗 Links ✅ Stephanie Eckles article: smashingmagazine.com/2022/01/introduction-css-cascade-layers ✅ Bramus' article: bram.us/2021/09/15/the-future-of-css-cascade-layers-css-at-layer ✅ Una's video: youtube.com/watch?v=ilrPpSQJb3U ✅ My video on Specificity: 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 💬 discord.gg/nTYCvrK Keep up to date with everything I'm up to ✉ kevinpowell.co/newsletter Come hang out with me live every Monday on Twitch! 📺 twitch.tv/kevinpowellcss --- Help support my channel 👨🎓 Get a course: kevinpowell.co/courses 👕 Buy a shirt: teespring.com/stores/making-the-internet-awesome 💖 Support me on Patreon: patreon.com/kevinpowell --- My editor: VS Code - 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: twitter.com/KevinJPowell 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!