
You’re probably writing complex CSS for no reason
These past days I’ve noticed that many of us haven’t been checking out on what’s new with CSS features and I think if you haven’t checked for these new features, you’re probably complicating your CSS snippets and writing complicated JavaScript snippets that can done using CSS. In Today’s guide I will be talking about some of the new features of CSS that you probably haven’t heard of or may have heard of them but haven’t practiced them, no worries I will be guiding you on how they work and giving an example of their use-cases. Features we will cover Introduction Features we will cover has pseudo-class CSS Nesting Nesting for pseudo-elements and pseudo-classes @scope @container queries Summary Final Thoughts has pseudo-class The has pseudo-class unlocks a lot of possibility with CSS, now with has pseudo-class you can style the parent element based on its descendant's behavior, styling and even their attributes. If I we were to have a button that toggles a text on/off, in this case we wou
Continue reading on Dev.to Webdev
Opens in a new tab




