Sent by Eric A. Meyer on 25 June 2002 16:04
At 15:53 -0400 6/25/02, Timothy J. Luoma wrote:
>I thought this was an interesting idea, tried it, and it worked:
>
>html { background-color: #7FFFD4; }
>
>body { margin-left: 5% ; margin-right: 5% ; color: black ;
>background-color: white; border: outset #7FFFD4 10px ;padding: 2em; }
>
>It validates
>http://jigsaw.w3.org/css-validator/validator?uri=http://1stpc.org/css
>/1stpc.css
>
>It works in Moz1, Opera5&6, and IE6 (windows), and even degrades well in
>NN4
>
>But somehow it seems like this wouldn't be legal, or at least not kosher.
It's perfectly legitimate. Try out this stylesheet in one of the
above browsers in a document that has a standards-mode DOCTYPE:
html {background: aqua;}
body {margin: 20px; background: green;}
Or, if you just want to skip to the results, check out
<http://www.w3.org/Style/CSS/Test/CSS1/current/sec45.htm>. Note the
size of the 'body' element, and consider what that would mean in the
case of setting a table (which is a descendant of the 'body') to have
a 'height' of 100%...
--
Eric A. Meyer (http://www.meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
-- Martina Kosloff (http://www.mako4css.com/)