f1vlad.com

/*liveSandbox*//*f1 strong! (rev.3.4)*/

Brainwashing ie6 to use min-width

This code snippet will force your ie6 clients to understand min-width, pretty cool hack.

element.style{
_width:expression(((document.compatMode && document.compatMode=='CSS1Compat') ? document.documentElement.clientWidth : document.body.clientWidth) < 660 ? "660px" : "auto");
}

Note that I prepend '_' before 'width', that ensures that only ie6 will bother to try to interpret that command, other normal browsers will ignore that.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.

 

  • Drupal
  • Twitter
  • ./
  • National Guard Youth ChalleNGe Program
  • Радио-Т
  • sparow

 

© 1999—2008 f1vlad.com