xxxxxxxxxx
@media only screen and (max-width: 600px) {
/* CSS rules for mobile devices */
}
xxxxxxxxxx
@media only screen and (max-width: 600px) {
your css here and you're good to go!
}
xxxxxxxxxx
/* CSS media query for mobile devices */
@media only screen and (max-width: 767px) {
/* Add your mobile-specific CSS styles here */
body {
background-color: #f2f2f2;
font-size: 14px;
}
/* ... */
}
xxxxxxxxxx
/* Styles for devices with a maximum width of 768 pixels (e.g., mobile phones) */
@media only screen and (max-width: 768px) {
/* Add your CSS styles for mobile devices here */
}
/* Styles for devices with a maximum width of 480 pixels (e.g., smaller mobile phones) */
@media only screen and (max-width: 480px) {
/* Add your CSS styles for smaller mobile devices here */
}
xxxxxxxxxx
@media (min-width:320px) { /* smartphones, iPhone, portrait 480x320 phones */ }
@media (min-width:481px) { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ }
@media (min-width:641px) { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ }
@media (min-width:961px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }
xxxxxxxxxx
@media only screen and (max-width: 768px) {
/* CSS rules specific to mobile devices */
/* Add your styles here */
}