CODE CODIFY.CLUB

CSS : Select element based on multiple classes

I want to apply my style rule only if the li has both .class1 and .class2 classes applied.
<li class='class1 class2'>
 

Solution  : 
.class1.class2 {
/* style here */
}

V!ral

Developer, Technology aficionado, Beer Lover and founder of codify.club Network. Who shares a keen interest about website development, health issues, cancer awareness and other fun stuff.

Add comment

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.

Most popular

Most discussed