Question

  min-width: 160px;
  max-width: 220px;
  _width: 160px;

I know it's some version of IE, 6, 7 or 8. But can't figure out which one...

Was it helpful?

Solution

MSIE 5+ will process the tag as if there were no underscore, whereas other browsers will ignore that tag completely.

See http://wellstyled.com/css-underscore-hack.html

OTHER TIPS

This smells like IE6. As far as I remember, IE7 added support for min- and max-width.

Of course this solution makes it static for IE5+6, and dynamic for other browsers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top