Previous Message
Next Message

RE: [css-d] box model hack

Sent by RUST Randal on 7 February 2002 10:10


The problem is that the C-style '//' comment syntax is not valid CSS.

----------

oops.  i probably should have noted that those comments aren't included in
my actual CSS.

i also should have run it through the validator, which did give errors.
however, if i do this:

----------
body {
	width: 100%;
	margin: 0;
	border: 0; }
	
#box {
	width: 400px; /* ie 5 */
	padding: 0 5px 0 5px; }
	
#box {
	width: 380px; /* ie 6 */ }	
	
html>body #box {
	width: 380px; }	
----------

it validates, but i don't have IE 5 available to test it out and see if it
still gives me the same effect.

randal
Previous Message
Next Message

Possibly related: