Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is this compound CSS selector means?

 .btnBlue.btnLtBlue

Does it mean an element who has both classes? btnBlue AND btnLtBlue

like image 613
Itay Moav -Malimovka Avatar asked May 15 '12 13:05

Itay Moav -Malimovka


People also ask

What is compound CSS?

Use a compound selector to customize an elementA compound selector can mix the previous 3 types using more than one class, ID and/or tag.

What is a compound selector?

A compound selector is a chain of one or more simple (tag, class, ID, universal, attribute) selectors. If there is more than one compound selector in a complete selector, they will be separated by combinators (e.g. ``, + , > ).


1 Answers

Yes. When two class name are concatenated like that it means the element must have both classes for that rule to be applied

like image 82
John Conde Avatar answered Sep 20 '22 22:09

John Conde