If there is an HTML element like <div class="left side">, is there a way to target this by specifying "elements that are both of the class 'left' and 'side' "? I couldn't find a way from the W3 specs... (Now doing the obvious: styling .left and .side separately)
Samuli, if you want to adress elements only when both classes are attached you use .left.side
without a space between the class names.
Please read further explanations at CSS 2.1 - 5.8.3 Class selectors.
Urs
Thank you very many!
Slightly embarrasing to have missed that bit in the specs, I thought I had read the "selectors" part carefully...
Slightly embarrasing to have missed that bit in the specs, I thought I had read the "selectors" part carefully...
Never mind, you know that you can ask here