Created
September 1, 2012 00:29
-
-
Save justinwhall/3561807 to your computer and use it in GitHub Desktop.
CSS | Media Query Template
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
/* Xlarge screens ----------- */ | |
@media only screen and (max-width : 1260px) { | |
.container{ | |
width:1024px; | |
} | |
} | |
/* Desktops and laptops ----------- */ | |
@media only screen and (max-width : 1024px) { | |
.container{ | |
width: 850px | |
} | |
} | |
/* iPads (landscape) 1024px ----------- */ | |
@media only screen and (max-width : 1260px) { | |
/*if needed*/ | |
} | |
/* iPads (portrait) 768px ----------- */ | |
@media only screen and (max-width : 850px) { | |
.container{ | |
width: 768px | |
} | |
} | |
/* iPhone 4 ----------- */ | |
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) { | |
} | |
/* iphone (landscape) 480px ----------- */ | |
@media only screen and (max-width : 767px) { | |
.container{ | |
width: 480px; | |
} | |
} | |
/* iphone (portrait) 320px ----------- */ | |
@media only screen and (max-width : 480px) { | |
.container{ | |
width: 320px | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment