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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:08:12+00:00 2026-05-26T16:08:12+00:00

I am developing a mobile website, and I’ve come across an interesting issue. I’m

  • 0

I am developing a mobile website, and I’ve come across an interesting issue.

I’m testing on my desktop, as well as on my Motorola Droid (Android 2.2). I have media queries set up to load 3 different stylesheets (320px wide, 480px wide, and 640px wide). I noticed that my Droid is loading the 320px stylesheet despite having a 480x854px screen. I set up a little JS to find out what the screen width is, and it’s reporting 320px.

Does the Android browser run in MDPI on HDPI screens? It’s scaling the 320px properly to fill the screen, but I’m a little confused why this is happening.

Also, I do have <meta name=”viewport” content=”width=device-width”> on my page, so that is not the issue.

  • 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-26T16:08:13+00:00Added an answer on May 26, 2026 at 4:08 pm

    Many OEMs have chosen to set their default browser viewport dimensions based on those of the iPhone (or similar resolutions) despite having an altogether different resolution. Apple had a similar problem with the release of the ‘retina display’ on the iPhone 4 where the spec sheet states 640px across, but screen.width will return 320px when is set.

    As @omermuhammed mentioned base your logic on screen.width, CSS @media queries AND/OR device detection using WURFL or DeviceAtlas.

    The following article may also be of interest in helping to clarify the issue:

    A pixel is not a pixel is not a pixel by @ppk
    http://www.quirksmode.org/blog/archives/2010/04/a_pixel_is_not.html

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

Sidebar

Related Questions

I am developing a mobile website for android and I have multi level menus.
I'm new to developing mobile websites and I have an issue with Palm Pre.
I'm developing a mobile website using the jQuery Mobile library. I have a header,
I'm developing a website and want to provide a mobile and desktop friendly experience
I am developing a mobile app to run on a pocketpc. We have a
I am developing a mobile web application (for iPhone & Android) with a local
I am developing applications for mobile phones with different operating systems (Android, Symbian, iPhone).
I'm developing an website which is to be viewed on mobile (cellphone) devices. I'm
I'm developing a relatively simple website using a media query to target mobile devices
I was currently developing a desktop application in C# using mono and testing in

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.