Simple CSS logical AND trick I never knew


2 thoughts on “Simple CSS logical AND trick I never knew”

  1. I’ve been researching conditional operators in CSS (I’m a coder, not a designer, so I’ve always been prohibited from looking at CSS at work), and I ran into this:

    from http://www.w3.org/TR/CSS2/selector.html
    DIV.warning
    ==> Language specific. (In HTML, the same as DIV[class~=”warning”].)

    and

    E[foo~=”warning”]
    ==> Matches any E element whose “foo” attribute value is a list of space-separated values, one of which is exactly equal to “warning”.

Comments are closed.