Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7609075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:05:01+00:00 2026-05-31T01:05:01+00:00

Hi I am working with multiple tablet devices, iPad, Galaxy Tab, Acer Iconia, LG

  • 0

Hi I am working with multiple tablet devices, iPad, Galaxy Tab, Acer Iconia, LG 3D Pad and so on.

  • iPad – 1024 x 768
  • LG Pad – 1280 x 768
  • Galaxy Tab – 1280 x 800

I want to target iPad only using CSS3 media query. Since, device width of LG and iPad is same 768px – I am having trouble separating each device.

I have tried following to separate, but does not seem 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 don’t know the -webkit-device-pixel-ratio and other -webkit* options and their values to target for iPad. I don’t want to use JavaScript for styles, any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:05:02+00:00Added an answer on May 31, 2026 at 1:05 am

    Finally found a solution from : Detect different device platforms using CSS

    <link rel="stylesheet" media="all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait)" href="ipad-portrait.css" />
    <link rel="stylesheet" media="all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape)" href="ipad-landscape.css" />
    

    To reduce HTTP call, this can also be used inside you existing common CSS file:

    @media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) {
      .ipad-portrait { color: red; } /* your css rules for ipad portrait */
    }
    @media all and (device-width: 1024px) and (device-height: 768px) and (orientation:landscape) {
      .ipad-landscape { color: blue; } /* your css rules for ipad landscape */
    }
    

    Other references:

    • https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariCSSRef/Articles/OtherStandardCSS3Features.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an application that will run on multiple devices. I have
If I am working in multiple branches on a single feature, I use git
I'm working with multiple images that need to be compressed using the DXT/S3TC format
I'm currently working on multiple changes/bugs and I would like to be able to
I am working with multiple XElement objects to provide some user-specified data for several
I'm rather new to working with multiple threads in a database (most of my
how can i make java program working with multiple languages (frensh, english , arabic
I'm very interesting in inexpensive (better free) SQL query tool for working with multiple
This is a very basic question, but my brain isn't working and multiple attempts
A project I am working on makes multiple calls to the YouTube gdata API.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.