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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:30:59+00:00 2026-06-06T02:30:59+00:00

When you surf with your browser, you can increase or decrease the font dimension

  • 0

When you surf with your browser, you can increase or decrease the font dimension by pressing CTRL + + or CTRL + -.

Is there a way to simulate this operation by code (like javascript)?

I have to put a couple of button on my site to increase or decrease the size but to make it, I have to change dynamically a lot of font-size properties (BODY, INPUT, OPTIONS etc…)

  • 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-06-06T02:31:01+00:00Added an answer on June 6, 2026 at 2:31 am

    Don’t do this. Browser zoom is a feature that:

    • may or may not be present in a browser,
    • is implemented in different ways through browsers,
    • only exists as a last-resort plumbing for bad websites.

    a couple of button on my site to increase or decrease the size but to make it, I have to change dinamically a lot of font-size properties

    What you really want to do is:

    • Scale your fonts in relative units (like em or %) everywhere,
    • Change document.body.style.fontSize to modify your base size (which other elements will
      use as their base size).

    Specify the body‘s font size in relative units too – In this way you can also respect the user’s system settings (which every decent website should do).

    There’s plenty of resources on CSS font scaling around. Here’s one:

    http://kyleschaeffer.com/best-practices/css-font-size-em-vs-px-vs-pt-vs/

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

Sidebar

Related Questions

there are a lot of mobile devices that can surf and could benefit from
I know this topic is bit old, but i did surf the web and
I'm trying to surf my website. There is a specific css file I cannot
I surf to this url: http://localhost:8976/Authorization.htm?oauth_verifier=79Uzx6XtTBLr5bng67YcqoWY&oauth_token=4%2Fld_dV4hLZc1oOGI0YCrqK-qD7VOV My Bll code ( note: not the code
could please anybody help me to install spring surf ? According to this video
Can anyone tell me how to do that, just like when I surf google.com
I have no idea to do this.... I've surf the net..but none of the
How can I manage page state history in share (surf?) so that I remember
I know semilogx and semilogy for 2D plots. There is any equivalent for SURF
Is there a way to redirect a URL containing smart quotes via .htaccess? I'm

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.