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

  • Home
  • SEARCH
  • 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 5942303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:14:03+00:00 2026-05-22T16:14:03+00:00

I was wondering whether it is possible to prevent following behaviour: I’ve got a

  • 0

I was wondering whether it is possible to prevent following behaviour:
I’ve got a *.css file in which I define the font-size for my mobile-web-app.

html,body {
font-size:16px !important;
}

I didn’t use any other font-size attributes in my files.
Now, when I turn into the landscape mode, the font-size changes.
How can I prevent or manipulate this behaviour. Do I have to use @media screen and (max-width: x px) { } or is there any other way?

Thanks for sharing.

  • 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-22T16:14:04+00:00Added an answer on May 22, 2026 at 4:14 pm

    You may need to use extra selectors but the following should do the trick.

    html,body { -webkit-text-size-adjust:none; }
    

    So that this rule doesn’t prevent text resizing in WebKit desktop browsers (Chrome, Safari and soon Opera), wrap it in a CSS media query targeting the desired devices like so:

    /* iPhone, portrait & landscape. */
    @media all and (max-device-width: 480px) {
        html,body { -webkit-text-size-adjust:none; }
    }
    /* iPad, portrait & landscape. */
    @media all and (min-device-width: 768px) and (max-device-width: 1024px) {
        html,body { -webkit-text-size-adjust:none; }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering whether it's possible to use JavaScript to intercept or prevent the user
Just wondering whether it is possible to update a ByteArray in C Code, which
I was wondering whether it's possible to validate a required size for an icon
I am wondering whether it is possible to set the size of the Android
I'm using Symfony 1.4 and wondering whether it's possible to achieve the following: <a
I was wondering whether it is possible to limit the number of characters we
I am wondering whether it is possible to make dynamic variables in Java. In
I was wondering whether it was possible for projects in Eclipse to have multiple
This is a very general question: I was wondering whether it is possible to
I'm wondering whether something like this is possible (and relatively easy to do), and

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.