Created
November 7, 2013 14:25
-
-
Save mikedugan/7355367 to your computer and use it in GitHub Desktop.
IE6 min and max width fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*CSS min and max-width fix for IE6. this is just sample sizes. replace the min and max to your needs and replace the | |
* 742 and 1202 with the min & max values + 2, respectively. */ | |
#content { | |
height: 75px; | |
background-color: #000; | |
color: #fff; | |
width: expression(document.body.clientWidth < 742? "740px" : document.body.clientWidth > 1202? "1200px" : "auto"); | |
min-width: 740px; | |
max-width: 1200px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment