Skip to content

Instantly share code, notes, and snippets.

@quangbahoa
Created June 15, 2012 19:58
Show Gist options
  • Save quangbahoa/2938442 to your computer and use it in GitHub Desktop.
Save quangbahoa/2938442 to your computer and use it in GitHub Desktop.
wordpress.com.vn
@media screen and (max-width: 480px) {
body {
//css
}
#content {
//css
}
// and so on…
}
<meta name="viewport" content="width=device-width; initial-scale=1">
@media only screen and (min-width: 480px) and (max-width: 767px) {
body {
width: 436px;
padding: 36px 22px 48px;
}
}
@media only screen and (min-width: px) {
}
Hoặc:
@media screen and (max-width: px) {
}
Hoặc:
@media only screen and (min-width: px) and (max-width: px) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment