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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:28:18+00:00 2026-05-24T11:28:18+00:00

How do you increase/decrease the font size in a web page when you don’t

  • 0

How do you increase/decrease the font size in a web page when you don’t control the HTML, but only the div or the iFrame in which the HTML appears?

We have a site that includes user-generated content. This content is essentially uncontrolled, and the HTML can be complex. (It’s an “upload your own ebook” app).

We wrap the content for each chapter in a div. We’d like to add a control to the page that will allow the reader to increase the size of the fonts within the div.

A similar question was asked here:
Allow users to change font size in a webpage, but the answers won’t work because I can’t prevent users from adding HTML that specifies font sizes in pixels.

My best thought is to roll through all the text using jQuery and adjust, but this is likely to generate problems when font sizes are inherited, because the font in a child element would get adjusted twice.

Is there any generalized solution for this problem?

  • 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-24T11:28:19+00:00Added an answer on May 24, 2026 at 11:28 am

    I would look into stripping the font size when the book is uploaded.
    Alternatively: Tell your writers that their books might not look the right way in everyone’s browsers if they specify exact fonts.

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

Sidebar

Related Questions

I'd like to increase and decrease font size with pinch in and out. but
I have a HTML page where I want one button to increase the font
How can I increase/decrease the default dojo datagrid font size? Should I do this
I've got some code to increase/decrease font size. This is giving me a headache
I have an increase button and a decrease button, both of which affect a
To increase font-size in Xcode is a pain.
How can we increase or Decrease width of a DIV using setTimeout() ??
I am working on a project and having trouble to increase or decrease font
Is there a way to manually increase / decrease the timeout of a specific
What's the easiest way to increase or decrease indentation for a large block of

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.