[thelist] CSS: Why does this work?
Geoff Sheridan
evolt at premonition.co.uk
Tue Apr 6 10:29:09 CDT 2004
> <div class="test a">
> This is a test.
> </div>
>
> works the same as...
>
> <div class="a">
> This is a test.
> </div>
>
> Why does the div work when you enter either "test a" or just "a" in the
>class field? As a random test, "cow a" works too.
>
Multiple classes. Example:
.red {color:red}
.blueback {background-color:blue}
<p class="red">Red text</p>
<p class="blueback">Text with a blue background</p>
<p class="red blueback">Red text with a blue background</p>
Doesn't work in IE :(
g
--
-------------------------------------------------------
Premonition Design Ltd
http://www.premonition.co.uk/
East London, UK
More information about the thelist
mailing list