I have the following HTML:
<DIV class="foo bar"></DIV>
I’m trying to create a CSS class declaration that matches said element. Looking through the specs on section 8.2.3, I imagine this should’ve work:
DIV.foo.bar { border-color: black; }
But I’ve tested on IE and Safari, both doesn’t affect the element. Any tricks how to make this work?
I think it’s because you’re specifying “border-color: black” without a border-width or border-style. Try setting “border: solid 1px black” and see if that works.