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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:05:51+00:00 2026-05-14T15:05:51+00:00

what is default line-height of browsers like font-size is 16px ? for which HTML

  • 0

what is default line-height of browsers like font-size is 16px?

for which HTML elements i should define line-height and for which not?

What is the reason behind to give line-height to body { } ?

Will line-height effect to single line text?

If I’m using font in em then should i also use use line-height in em?

What is co-relation between line-height and font-size?

  • 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-14T15:05:51+00:00Added an answer on May 14, 2026 at 3:05 pm

    In my experience, a common default line-height seems to be close to 1.2 (that would be ~19px leading for a 16px font (16*1.2)). In some browsers versions it’s about 1.1 – but I can’t remember ever seeing it outside that scope.

    The line-height property is inherited from parent to child – so specifying a line-height on <body> will affect all elements on the page, except the ones that have their own line-height property set, and their descendants. (See example below)

    Line height affects the height occupied by each character – so yes it also has an effect on single-line-of-text elements.

    Line-height comes in three basic flavours:

    1. ‘relative’/’unitless’ (e.g. 1.2)
    2. ‘fixed’ (e.g. 14px)
    3. ‘fixed-relative’ (e.g. 1.2em)

    Relative (unitless) values will apply proportionally equivalent line-height to all elements depending on their font-size.
    Meanwhile, fixed values (px) don’t change with the font-size.

    For explanation of the ‘fixed-relative’ variant (the ’em’-values) refer to Eric Meyer’s blog post “Unitless Line-Heights“.

    Each flavour has it’s place in the world. 🙂

    Here’s a short example of all three:

    body {
      font-size: 12px;
      line-height: 1.5;
    }
    small {
      font-size: 10px;
    }
    div {
      line-height: 21px;
    }
    p {
      line-height: 2em;
    }
    
    ...
    
    <body>
      one
      <small>two</small>
      <div>
        three
        <small>four</small>
      </div>
      <p>
        five
        <small>six</small>
      </p>
    </body>
    

    Each word in the example above would have the following line-heights (translated into px)

    • ‘one’ == 18px (1.5 times the 12px font-size of body)
    • ‘two’ == 15px (1.5 times the 10px font-size of small)
    • ‘three’ == 21px (fixed px value)
    • ‘four’ == 21px (inherits a fixed px value from div)
    • ‘five’ == 24px (2 times the 12px font-size of p (inherited from body))
    • ‘six’ == 24px (inherits a (fixed) pre-calculated value from p)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the default value of line-height in built-in HTML style, i.e. how many
I came across this line in a MySQL script `other_validator` varchar(5000) NOT NULL DEFAULT
How to change default emacs mark-paragraph function behaviour to not select first empty line?
When I have two line of text with different font-size, they overlap. Look at
I'd like to set different line-height for different fonts from a list fall-back fonts.
How to define that by default there should be shown the content of submenu11
By default there is a single line separator in uitableview. But I want to
By default, the ordered list looks like this: There are some spacing on the
The default behaviour in browsers is to select the next form element. I want
I've discovered its impossible to modify the line height in a UILabel. Bummer. Also

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.