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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:19:39+00:00 2026-06-18T14:19:39+00:00

I know that I can change the size of individual html headings using css

  • 0

I know that I can change the size of individual html headings using css (e.g., h1 {font-size: 0.5em;}). However I would like to overall reduce the size of all the headings (h1, h2, h3, etc…) while retaining their relative sizes to each other (h1 > h2 > h3, etc…).

Is it possible change all the heading sizes with a single css statement or will I have to specify each heading separately?

  • 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-18T14:19:40+00:00Added an answer on June 18, 2026 at 2:19 pm

    You cannot set e.g. the font size of h1 and h2 in the same CSS statement, except to the same declared value.

    However, if you wish to make it possible to change the font sizes of headings in a centralized manner, you can wrap all headings in div elements, e.g.

    <div class=heading><h1>...</h1></div>
    <div class=heading><h2>...</h2></div>
    

    Now, assuming you have set font sizes in em units (or percentages), e.g. h1 { font-size: 2em } h2 { font-size: 1.5em }, you can modify them all by setting font size on the enclosing div element, e.g.

    .heading { font-size: 0.9em; }
    

    This would reduce the font size of all headings by 10%, without affecting font sizes on the page otherwise.

    P.S. It is odd to set the font size of the main heading to one half of the font size of its parent. It is difficult to see what you are trying to accomplish. It is normally sufficient to set font sizes in em units using some reasonable scale.

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

Sidebar

Related Questions

I know that using Applescript I can change the size and position of any
I know that size of various data types can change depending on which system
I know I can change the size of bitmaps loaded programmatically by using BitmapFactory.Options
I know that I can track when the mouse is moved like this: $(body).mousemove(
I would like to change the size of the window's icon in the xaml
We know that in android application we can change background color of checkboxes by
i know that you with $(window).width() can get the size of the web browser.
I know that one cannot change the size of an app widget. But what
I know how to change size, style but how can I set colour of
I know that can't use left join in indexed view. but I don't understand

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.