I want some CSS code to target both iPad and desktop with max-width: 768.
This (I don't know why, would be glad to know) doesn't work for the iPad (only desktop):
@media only screen and (max-width: 768px)
so I had to to this for the iPad:
@media only screen and (device-width: 768px)
However, I have the exact same code inside both media queries, and that I cannot accept.
I tried this also:
@media only screen and (max-width: 767px) or (device-width: 768px)
This one above doesn't work either - it actually works for the desktop, no matter what width, and not on iPad. Really strange.
How to target both iPad and desktop with same media query?