Skip to content

Instantly share code, notes, and snippets.

@robertcedwards
Created June 18, 2012 21:34
Show Gist options
  • Save robertcedwards/2950871 to your computer and use it in GitHub Desktop.
Save robertcedwards/2950871 to your computer and use it in GitHub Desktop.
Borrowed from:http://codesnippets.joyent.com/posts/show/963 AGAIN another IE fix. IE of course does not recognize the max-width CSS property. This piece of code will fix it for IE6 and IE7. This code snip will make the maximum width for the html object 90
.cssClass
{
width:expression(document.body.clientWidth > 900? "900px": "auto" );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment