See more on responsive web design. The main summary of this: you must customize your css using media queries and customize your styles to accommodate various sizes. You should also design with a more flexible layout, using more %and less px.
I think these are fairly common media queries for responsive design:
@media (max-width: 480px) { ... }
@media (max-width: 767px) { ... }
@media (min-width: 768px) and (max-width: 979px) { ... }
@media (min-width: 1200px) { ... }
Add this to the top of your html:
<meta name="viewport" content="width=device-width" />
If you want to have separate stylesheets so that your user does not load a single monster stylesheet, do the following:
`<link rel="stylesheet" type="text/css" media="only screen and (max-width: 480px), only screen and (max-device-width: 480px)" href="/assets/css/small-device.css" />`
source
share