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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:22:02+00:00 2026-05-22T19:22:02+00:00

I am making html5 pages to be loaded on iPhone. And have a question

  • 0

I am making html5 pages to be loaded on iPhone. And have a question about font sizing.

For example: some text has font size 20px. If I load this text 3g device font size if ok. When I load the same page on 4g (higher resolution) – the font looks the same size. I would expect font to be smaller, as resolution is higher.

May I ask you to explain this?

thank you

  • 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-22T19:22:03+00:00Added an answer on May 22, 2026 at 7:22 pm

    It doesn’t quite work like that.

    Devices in iOS have a ‘scale factor’. This is the number of pixels on the screen that correspond to a single point. Both the iPhone 3G and iPhone 4 have a screen that is 320×480 points. However, the iPhone 4 has a scale factor of 2, so its pixel size is 640×960.

    iOS is clever enough to figure out that if you’re explicitly setting a pixel size in HTML you probably want it scaled up for a retina display. So it multiplies the pixel dimension by the scale factor of the screen (which is 2). Your 20 pixel font is rendered as if it was a 40 pixel font.

    If you particularly care about providing two different styles for retina and non-retina it’s possible to detect it in mobile safari. See here for more info: http://blog.iwalt.com/2010/06/targeting-the-iphone-4-retina-display-with-css3-media-queries.html

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

Sidebar

Related Questions

I have the following HTML (note the CSS making the background black and text
We have some code that is making use of the new postMessage functionality in
I'm currently making a GWT project where I display some HTML in a RichTextArea
I have a lot of <a> html tags without the href attribute for making
Making echo of a question around the web: Is the syntax for svn:ignore patterns
Making my first steps with NHibernate, I'm trying to have it creating my Tables
First time overflowing the stack. I'm making a website with several html pages that
I have been working on a jquery plugin that uses a HTML5 audio player
I am probably making some silly mistake but I am newer to the world
I have a page that is making an XML POST-Request to an URL on

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.