css min/max-width fix in IE6

We can use Javascript expression in css to make sure the min-width, max-width that works for IE6.

#content {
	height: 75px;
	background-color: #000;
	color: #fff;
	width: expression(this.Width < 742? "740px" : this.Width > 1202? "1200px" : "auto");
	min-width: 740px;
	max-width: 1200px;
}
affiliate_link
Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

No Responses to “css min/max-width fix in IE6”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>