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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:32:05+00:00 2026-05-13T00:32:05+00:00

I have a few users who complain that the font size on my web

  • 0

I have a few users who complain that the font size on my web application is too small to read. They aren’t happy with trying to resize the font setting on the browser because when they make the font larger the dimensions and layout of the application change. Are there any existing tools that give me a good way to let the end user pick a small/medium/large font size and have that change the .css of the site to a larger font size without affecting the layout of the page?

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

    Here’s code I use on some of my sites. Apply your HTML accordingly:

    HTML:

    <span>Font Size: </span>
    <a href="#" onclick="decreaseFontSize();">
        <img src="/images/minus.png" alt="Decrease Font Size" />
    </a>
    
    <a href="#" onclick="increaseFontSize();">
        <img src="/images/plus.png" alt="Increase Font Size" />
    </a>
    

    Javascript:

    var min=8;
    var max=18;
    function increaseFontSize() {
     p = document.getElementById("[the id of container w/font you want to size]");
     if(p.style.fontSize) {
     var s = parseInt(p.style.fontSize.replace("px",""));
     } else {
      var s = 12;
     }
     if(s!=max) {
      s += 1;
     }
     p.style.fontSize = s+"px"
    }
    function decreaseFontSize() {
     p = document.getElementById("[the id of container w/font you want to size]");
          if(p.style.fontSize) {
             var s = parseInt(p.style.fontSize.replace("px",""));
          } else {
             var s = 12;
          }
          if(s!=min) {
             s -= 1;
          }
          p.style.fontSize = s+"px" 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Have a Wordpress Site with few users who are my college students They
I have a database of users who signed up for my web application over
I'm modifying an existing web application that features the ability to administrate users who
I have a few scripts that send out emails to my users, and for
I have a CI app that uses db sessions, and a few hundred users
I have a few textboxes that are not required. If the user enters nothing
I have a user control that has a few public properties, one is an
I have some Ruby web apps that use OpenID for authentication and store the
We're running an C#.net app with users who might have WinXP or might have
I have few tables: Exams UserExams UserExamQuestions UserExamAnswers Users ExamQuestions ExamQuestionAnswers this is select

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.