I am trying to target specific devices with media queries but I can not get the styles to work. An example I am trying in a test environment is targeting an iPhone 5 like this:
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : landscape) {
.our-aim, .freedom, .quote, .bullet-list {
font-family: "aktiv-grotesk-std-i3","aktiv-grotesk-std",sans-serif;
font-style: italic;
font-weight: 300;
font-size: 1.2em;
}
}
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px)
and (orientation : portrait) {
.our-aim, .freedom, .quote, .bullet-list {
font-family: "aktiv-grotesk-std-i3","aktiv-grotesk-std",sans-serif;
font-style: italic;
font-weight: 300;
font-size: 1em;
}
h2 {
font-size:1.5em;
}
}
Is this wrong?
Can anyone help?