AllThingsSmitty / css-protips

⚡️ A collection of tips to help take your CSS skills pro 🦾
Creative Commons Zero v1.0 Universal
28.12k stars 2.16k forks source link

Slay Specificity with :is selector #180

Closed ghost closed 2 months ago

ghost commented 1 year ago

The :is selector in CSS lets you select multiple elements at once, making it easier to apply the same styles to them without repeating code. It helps keep CSS concise and maintainable by grouping similar elements under one rule, improving code readability and reducing redundancy. It's especially useful when you want to apply styles to various elements of the same type without listing each one individually.