[thelist] CSS: Why does this work?

Mark Kennedy mark at eurogamer.net
Tue Apr 6 10:23:49 CDT 2004


Because you are allowed to enter multiple classes into the class attribute,
using space delimeters.

<div class="blah bop">

would satisfy both .blah and .bop rules in a stylesheet.

Regards,

Mark


On Tue, 6 Apr 2004, Rob Smith wrote:

>Good morning, afternoon, evening,
>
>  <style type="text/css">
>   * { font: 1em serif; }
>   .a { position: absolute; z-index: 2;  top: 10; left: 10; padding: 10px;}
>   .b { z-index: 1;  top: 0; left: 0; width: 100%; height: 100%;  padding:
>0px; margin: 0px; align:center;}
>  </style>
>
>
>  Then down in the code...
>
>  <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.
>
>  Thanks!
>
>Rob.Smith
>-- 
>* * Please support the community that supports you.  * *
>http://evolt.org/help_support_evolt/
>
>For unsubscribe and other options, including the Tip Harvester 
>and archives of thelist go to: http://lists.evolt.org 
>Workers of the Web, evolt ! 
>

 




More information about the thelist mailing list