[thelist] CSS: Why does this work?

Rob Smith rob.smith at THERMON.com
Tue Apr 6 08:28:32 CDT 2004

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;}

  Then down in the code...

  <div class="test a">
	This is a test.

  works the same as...

  <div class="a">
	This is a test.

  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.



More information about the thelist mailing list