Previous Message
Next Message

[css-d] CSS Hack

Sent by Joe Gregorio on 21 February 2002 15:03


I haven't seen this hack mentioned anywhere. I just
ran into it quite by accident. The idea is that IE
still parses CSS statements even if they are commented out.

.fullName {
	border-bottom: solid rgb(51, 89, 142) 3px;
	font-size:1em;
	position:absolute;
	left:12em;
	top:1.1em;
//	left:11em;
//	top:2.5em;
}

IE 6.0 Win will use the values of 11em for left: and 2.5em for top.
Opera 6 Win and NN 6.2 Win will use the values of 12em for left: and 1.1em 
for top.

I haven't experimented how this works with older browsers. Hope someone
finds this useful.

	-joe
Previous Message
Next Message

Message thread: