If the intended value of your CSS should match "an element with c1 and c2 in its list of classes," then that could be .c1.c2 . This selector ( .c1 .c2 ) means "an element with class c2 that is directly inside an element with class c1 ".
Edit: for completeness, to match an element with at least one of the classes c1 and c2 , you should use .c1, .c2 . Thus, the space refers to the structure of the document, the space is not equal to "and", but a comma "or".
Arkku source share