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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:28:51+00:00 2026-06-15T10:28:51+00:00

html { font-size: 62.5%; } body { font-size: 1.4rem; } /* =14px */ h1

  • 0
html { font-size: 62.5%; } 
body { font-size: 1.4rem; } /* =14px */
h1   { font-size: 2.4rem; } /* =24px */

Hey guys, I am trying to work out the calculation.
How do we get 14px for body and 24px for h1?

  • 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-15T10:28:51+00:00Added an answer on June 15, 2026 at 10:28 am

    When html is given a font size as a percentage, it is calculated based on the font size preference set by the user in their browser options. This is usually 16px as a “standard” across browsers, but of course it may vary based on the user’s own settings.

    62.5% of 16px is 10px, giving html an absolute font size of 10px. From there, it should be easy to work out the sizes for body and h1.

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

Sidebar

Related Questions

I am trying to get the font size of selected range in a html
Ive set my fonts specifically as follows * {font-size: 1em;} html {font-size: 125%;} body{font-size:
typically the code is something like: <html> <head> <style type=text/css> body { font-size:12pt; font-family:
$(body *).live('mouseover', function() { var currentId = $(this).attr('id'); var html = <div id='perfect' style='font-size:10px;'><div
I have these lines of code: NSString *html = [NSString stringWithFormat: @<html><body><p \style=\font-size:%d; text-align:center;
Here is my very basic test code: <html> <head> <title></title> </head> <body style=font-size:100%; margin:0;
Any idea how to find and replace the HTML font-size in style attribute? eg.
edit This question is solved! Having something weird. I'm using html { font-size: 100%
Html text box should have same font size for both upper and lower case
I want to set the font-style and font-size of the text in my HTML

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.