, for example), you can write lik...">
📜 ⬆️ ⬇️

CSS: selector for two or more classes at the same time

It turns out that to select an element belonging to the classes foo and bar at the same time ( <div class="foo bar"> , for example), you can write like this:

div.foo.bar { ... }

Found out by chance experimentally. I did not know, ashamed.

')

Source: https://habr.com/ru/post/62983/


All Articles