Hello, I work with a variety of tablet computers, including the iPad, Galaxy Tab, Acer Iconia, LG 3D Pad, and others.
- iPad - 1024 x 768
- 1280 x 768 LG Pad
- 1280 x 800 on the Galaxy Tab
I just want to use CSS3 media queries to target the iPad. Since the LG and iPad have the same device width (768 pixels), I am having problems separating each one.
To separate, I tried the following, but it does not appear to be working:
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation : portrait) /* applied to lg also */
@media only screen and (min-resolution: 132dpi) and (max-device-width: 1024px) and (orientation : portrait) /* applies to lg also */
@media only screen and (device-aspect-ratio: 1024/768) and (orientation : portrait) /* does not work on iPad or LG */
I am unaware of the values for the -webkit-device-pixel-ratio and other -webkit* parameters to aim for the iPad. Any suggestions because I don't want to utilize JavaScript for styles?