<meta name="viewport" content="height=device-height">
@media (max-width: 600px) {
.navbar {
display: none;
}
.smallbar {
display: block;
}
}
Example of a responsive style sheet
/* each viewport size gets its own css
common css will appear outside */
body {
...
}
@media (min-width: 360px) and (max-width: 768px) { ... }
@media (min-width: 769px) and (max-width: 1240x) { ... }
@media (min-width: 1241px) { ... }
Use your phone to visit:
http://andreasbovens.github.io/understanding-viewport/
Press the different meta tag settings to see how it affects the layout