Super Short CSS Selectors With :is() and :where()

In this video you’ll learn how to simplify your CSS code, turning long verbose selectors into something much more efficient with the :is() and :where() pseudo-classes.

For example, let’s say you use the following selectors to target a bunch of heading elements on the page and make them all serif:

That’s quite messy. But using the :is() pseudo class function we can change all that into this:

.That’s just one example. Check out the video to see more, along with explanations of how :is() works, and how it goes hand in hand with the :where() pseudo class too!

CSS Fan? Check Out These Videos!

If we haven’t met before my name’s Adi and I’m a web designer. It’s my goal with these videos to help you become a better web designer and developer!

Resources


This content originally appeared on Envato Tuts+ Tutorials and was authored by Adi Purdila

In this video you’ll learn how to simplify your CSS code, turning long verbose selectors into something much more efficient with the :is() and :where() pseudo-classes.

For example, let’s say you use the following selectors to target a bunch of heading elements on the page and make them all serif:

That’s quite messy. But using the :is() pseudo class function we can change all that into this:

.That’s just one example. Check out the video to see more, along with explanations of how :is() works, and how it goes hand in hand with the :where() pseudo class too!

CSS Fan? Check Out These Videos!

If we haven’t met before my name’s Adi and I’m a web designer. It’s my goal with these videos to help you become a better web designer and developer!

Resources


This content originally appeared on Envato Tuts+ Tutorials and was authored by Adi Purdila


Print Share Comment Cite Upload Translate Updates
APA

Adi Purdila | Sciencx (2022-02-11T11:27:59+00:00) Super Short CSS Selectors With :is() and :where(). Retrieved from https://www.scien.cx/2022/02/11/super-short-css-selectors-with-is-and-where/

MLA
" » Super Short CSS Selectors With :is() and :where()." Adi Purdila | Sciencx - Friday February 11, 2022, https://www.scien.cx/2022/02/11/super-short-css-selectors-with-is-and-where/
HARVARD
Adi Purdila | Sciencx Friday February 11, 2022 » Super Short CSS Selectors With :is() and :where()., viewed ,<https://www.scien.cx/2022/02/11/super-short-css-selectors-with-is-and-where/>
VANCOUVER
Adi Purdila | Sciencx - » Super Short CSS Selectors With :is() and :where(). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/02/11/super-short-css-selectors-with-is-and-where/
CHICAGO
" » Super Short CSS Selectors With :is() and :where()." Adi Purdila | Sciencx - Accessed . https://www.scien.cx/2022/02/11/super-short-css-selectors-with-is-and-where/
IEEE
" » Super Short CSS Selectors With :is() and :where()." Adi Purdila | Sciencx [Online]. Available: https://www.scien.cx/2022/02/11/super-short-css-selectors-with-is-and-where/. [Accessed: ]
rf:citation
» Super Short CSS Selectors With :is() and :where() | Adi Purdila | Sciencx | https://www.scien.cx/2022/02/11/super-short-css-selectors-with-is-and-where/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.