On 10/14/11 1:40 PM, Tom Livingston wrote:
List,

I am using the following media queries:

@media only screen and (max-device-width: 1024px) and (orientation:portrait){ }
@media only screen and (max-device-width: 1024px) and (orientation:landscape){ }

I am trying to target ONLY iPads and the like with the above
max-device-width. The above, however, is also effecting browsers
(tested with FF 7.0.1) on a laptop with a screen resolution set at
1024x768. Is there a way to target ONLY the iPad and similar device ??

TIA



A "browser-sniffing" program language might be needed to do that.

Assuming you are interested in hitting mobile-handsets as well as tablets, a perhaps more viable approach than browser-sniffing -- particularly with a two-column layout -- is create the layout to fold normally and not kick in any media query until you hit mobile 480, using... @media screen and (max-device-width:480px),screen and (max-width:480px){...}}

For base layouts of three or more columns a spin-off of the "380 and up" layout concept may be appropriate...
<http://stuffandnonsense.co.uk/projects/320andup/>

Best,
~d



--
Desktop. Laptop. Tablet. Mobile!
http://chelseacreekstudio.com/

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to