css3 Media Queries for All Devices
Saturday
28th
January
2012
9:22 am
Responsive Webdesign using HTML5 and CSS3
What exactly is responsive web design?
Responsive Website Design is quite important for any business owner who has a website. it allows your visitors to browser your website with any device
There are three very important elements in responsive web design.
1-Flexible Layouts
2-Flexible Images
3-Media Queries
/* smartphones */
@media (min-width: 320px) and (max-width: 480px) {
...
}
/* smartphones in landscape mode */
@media screen and (min-width: 480px) {
...
}
/* tablets in portrait mode */
@media screen and (min-width: 768px) {
...
}
/* using width and height */
@media (max-width: 960px) and (max-height: 200px) {
}
/* tablets in landscape mode */
@media screen and (min-width: 1024px) {
...
}
/* standard laptop screens */
@media screen and (max-width: 1220px) {
...
}
/* bigger desktop screens */
@media screen and (min-width: 1440px) {
...
}
/* orientation */
@media (orientation: portrait) {
...
}
/* resolution */
This media query expresses that a style sheet is usable on devices with resolution greater than 300 dots per inch:
@media print and (min-resolution: 300dpi) {
...
}
Tags
If you liked this article then please feel free to:
discussion Join the discussion
0 comment







