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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:43:19+00:00 2026-05-26T22:43:19+00:00

I have mobile web application where I draw graphics by using CSS3/HTML5. It looks

  • 0

I have mobile web application where I draw graphics by using CSS3/HTML5.

It looks good on iPhone3G and iPhon3GS as they have the same pixel ratio.

However when I open the same web page on iPhone4 or iPhone4S it looks exactly the same as on iPhone3G with our regard to the better pixel ratio.

My question is:

Can I enforce iPhone4 device to use it’s pixel ratio instead of iPhone3G pixel ratio?

If I save the graphics to device’s drive and open it in Camera Roll, I see the difference on iPhone3G and iPhone4, so I’d like to see it on the web as well.

  • 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-26T22:43:19+00:00Added an answer on May 26, 2026 at 10:43 pm

    The truth is iPhone 4 comes with a 326-DPI screen, twice the original iPhone screen. This means that this new device has double width, double height in the same physical screen size. That is why Apple decided to give its browser the same CSS, viewport, and JavaScript dimensions as the low-DPI device, 320×480, and created a pixel-ratio of 2. This means that for every pixel, four real pixels will be drawn (a 2x zoom). Therefore, your website will render equally in iPhone 3GS or iPhone 4. If you still want to show high-DPI image you can use media query condition -webkit-min-device-pixel-ratio:

    <link media="all and (-webkit-min-device-pixel-ratio:2)" href="iphone4.css" type="text/css" rel="stylesheet" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a simple mobile web application using jQuery. The application is working good
I have a mobile web application built using the following versions :- JQuery Mobile
I have to build a mobile web application but it has to look different
I have a mobile web application that uses the Javascript SDK to connect to
I have a mobile application installed, say mail I have a web service/web application
Ok, I have been thinking of developing a web application using the play framework
I have web application for mobile (developed in .net), I want to use iPhone
I have a web application built with jQuery Mobile and PHP (CodeIgniter framework). Now
I have been assigned to build a mobile web application. I have found two
I have a web application that is currently using backbone.js 0.5.3 with backbone local

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.