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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:55:54+00:00 2026-05-23T00:55:54+00:00

A long time back, I read a great article that describes a cross-browser friendly

  • 0

A long time back, I read a great article that describes a cross-browser friendly way to size text using CSS. The strategy described is as such:

body {
    font-size:100%;
    line-height:1.125em; /* 16×1.125=18 */
}
.bodytext p {
    font-size:0.875em; /* 16x.875=14 */
}
.sidenote {
    font-size:0.75em; /* 16x0.75=12 */
}

This strategy works great on every browser except Safari on the iPhone, which always seems to enlarge certain bits of text. Is there any strategy to prevent this from happening?

Normally my solution would be to add -webkit-text-size-adjust: none; to prevent the iPhone from enlarging the size of the text, but I recently came across this article, which describes that it doesn’t allow users to zoom in on the text on ANY Safari browser – clearly a problem. I know that there is a CSS-only solution out there, but I can’t find it. I just want to know how I should go about setting font-sizes so that they display the same on all browsers, including the iPhone.

Update: To show an example, if you look at this on an iPhone, you’ll notice that the text in the paragraph is significantly larger than the rest of the text around the site. Why is this text singled out, and is there any way that I can tell just by looking at the code that that will happen?

  • 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-23T00:55:55+00:00Added an answer on May 23, 2026 at 12:55 am

    You have a technique you’re happy with, but with one downside:

    This strategy works great on every
    browser except Safari on the iPhone,
    which always seems to enlarge certain
    bits of text. Is there any strategy to
    prevent this from happening?

    ..

    Normally my solution would be to add
    -webkit-text-size-adjust: none; to prevent the iPhone from enlarging the
    size of the text, but I recently came
    across this article, which describes
    that it doesn’t allow users to zoom in
    on the text on ANY Safari browser –
    clearly a problem. I know that there
    is a CSS-only solution out there, but
    I can’t find it.

    Looking at style.css from http://html5boilerplate.com/mobile/

    /* Prevent mobile zooming while remain desktop zooming.
       github.com/shichuan/mobile-html5-boilerplate/issues/closed#issue/14
     */
    body {
        -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: none;
    }
    

    That sounds like exactly what you’re after, especially when you read the comment in the link:

    Just a suggestion, it seems like a
    good idea to set
    -webkit-text-size-adjust to 100% instead of none. Setting it to none
    prevents font zooming in desktop
    WebKit browsers, which seems like an
    accessibility issue. Mobile Safari’s
    default value is over 100%, which is
    why text is bigger — so if you set it
    to 100% instead of none, fonts stay
    the correct size on mobile but can
    still be zoomed on desktop.

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

Sidebar

Related Questions

Long time back in past I had read somewhere that if we want to
Long time ago, the Game Developer magazine published an article about ID Software and
I've been working for a long time with a .hgignore file that was fine
I want to display an animated arrow that goes back and forth (using flex
Long time listener, first time caller. I'm a full time SE during the day
A long time ago I had an apple ][ . I remember the command
A long time ago when I was a young lat I used to do
A long time ago I saw this trick in Ruby. Instead of doing (for
A long time ago I had the following directory structure in my SVN repository
I'm a long time hobbyist programmer interested in getting into web application development. I

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.