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 8949379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:12:23+00:00 2026-06-15T13:12:23+00:00

I have an Android mobile app created with jQuery Mobile and PhoneGap. I would

  • 0

I have an Android mobile app created with jQuery Mobile and PhoneGap. I would like to have 3 separate layouts depending on device and orientation:

  1. Portrait phone – on smartphones I want to use always portrait layout
  2. Portrait tablet – different than on phone
  3. Landscape tablet

Is this possible to achieve with CSS media queries? I know changing layouts is possible, but not sure how to force portrait layout only for smartphones and at the same time allow landscape for tablets.

  • 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-06-15T13:12:24+00:00Added an answer on June 15, 2026 at 1:12 pm

    Most of the devices would come under the following 3 resolutions
    1) HVGA-Half of VGA (320 x 240)
    2) WVGA- wide VGA(800x 480) – nearly 1.5 times of HVGA
    3) HVGA 2x- (640 X 960) – IPHONE 4 uses this resolution

    for your requirements

    1) & 2) you can write your styles inside @media as below. you can use HVGA or WVGA. Change width and height as per your need

    @Media screen and (min-width: 320px) and (max-width: 480px){
    /* css files here*/
    } 
    

    3)For a landscape view use orientation:landscape like in below example

    @media only screen and (-webkit-min-device-pixel-ratio: 2) and (orientation:landscape){
    /* css files here */
    }
    

    The code piece is just for your reference . Your needs may be different, Please change parameters like screen/only ,min-device-pixel-ratio, max-device-pixel-ratio etc as per your needs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to PhoneGap (1.7.0) a jQuery Mobile app (1.1.0) I have to create
I am developing an android app. I have tested the app in mobile and
I have run into a strange problem on Android , using jQuery mobile and
I have android device with root and i try to implement some small app.
I have a jQuery Mobile website I created for a friend/client of mine. It
I have a Mobile App (iPhone and Android) which allows user to login to
I'm building a web app using jquery mobile that will have lots of images
I am very new to android development.... i have created an app and want
I have a Android App I have developed, It has been created from a
I have an Android app created using Titanium's 1.8.2 SDK. I recently got it

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.