DEV Community

Discussion on: if/else in CSS

Collapse
 
r4nd3l profile image
Matt Miller • Edited

Also you can play with the :has() and the :empty() selectors as well!
They are pretty useful for this if/else topic! Cheers!

developer.mozilla.org/en-US/docs/W...
developer.mozilla.org/en-US/docs/W...