I have two div tags:
div class="one two three"div class="three two one"Could I construct a css rule that targets only ".one.two.three" but not ".three.two.one" ?
Use attribute selector:
div[class="one two three"] {}
But you should pay attention to whitespace as they count and can make your selector invalid
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With