Modello di media queries con css3 per vari dispositivi

/* Smartphone (portrait e landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* stili */
}

/* Smartphone (landscape) ----------- */
@media only screen
and (min-width : 321px) {
/* stili */
}

/* Smartphone (portrait) ----------- */
@media only screen
and (max-width : 320px) {
/* stili */
}

/* iPad (portrait e landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
/* stili */
}

/* iPad (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* stili */
}

/* iPad (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* stili */
}

/* Desktop e laptop ----------- */
@media only screen
and (min-width : 1224px) {
/* stili */
}

/* Grandi schermi----------- */
@media only screen
and (min-width : 1824px) {
/* stili */
}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* stili */
}
 
 
 

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

5 − 3 =