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

    It turns out to select an element that belongs to the classes foo and bar at the same time (
    , for example), you can write this: I

    div.foo.bar { ... }

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

    Also popular now: