Created
May 9, 2011 13:21
-
-
Save comfuture/962504 to your computer and use it in GitHub Desktop.
selective screen width (i did not know it works or not)
This file contains hidden or 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
#flashContent { | |
width: expression(document.body.clientWidth > 1080 ? '100%' : '1080px'); | |
overflow: expression(document.body.clientWidth > 1080 ? 'hidden' : 'auto'); | |
} | |
@media screen and (min-width: 1080px) { | |
#flashContent { | |
width: 100%; | |
overflow: hidden; | |
} | |
} | |
@media screen and (max-width: 1080px) { | |
#flashContent { | |
width: 1080px; | |
overflow: auto; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment