Brainwashing ie6 to use min-width

I'm at Boston University Fitness & Recreation Center (915 Commonwealth Ave., btwn Harry Agganis & Buick, Boston) http://t.co/qyP2liB2 7 hours 55 min ago

f1vlad last spotted in:

Nashua, New Hampshire

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.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
* three = six
Solve this math question and enter the solution with digits. E.g. for "two plus four = ?" enter "6".