Fix IE min-width min-height property

February 17, 2008

All of you there who are trying to work with CSS usually each this dilemma. you need to use teh min-width/min-height proper. Everything works fine, as expected, only that IE wont work.

There is an workaround for this even it is not CSS compliant. It is a combination between Javascript/CSS. Here it is


.page {
background:#fff;
margin:0px auto;
padding:0;
text-align:left;
width:90%;
min-width:981px;
width:expression( document.body.clientWidth < 1000 ? "981px" : "90%" );
}

Hope someone found this usefull ;)

 

Post a comment

Name (required)

Mail (will not be published) (required)

Website

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word