I am trying to apply a font and background color depending if I am using iphone 5 or 6. There is overlap in the queries, so it always falls into the last query. How do I apply CSS for iphone 5 and 6?
/*iPhone6 Portrait and Landscape*/
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px) {
body {
background-color: red;
font-size:16px;
}
}
/*iPhone5 Portrait and Landscape*/
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px){
body {
background-color: lightblue;
font-size:12px;
}
}