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...

Était-ce utile?

La 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

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top