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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:30:37+00:00 2026-05-11T03:30:37+00:00

Firefox 3 has introduced a new behavior in which line-height, when unset, differs from

  • 0

Firefox 3 has introduced a new behavior in which line-height, when unset, differs from how other browsers render it. Thus, a critical section maybe render too high in that browser. Setting a global percentage doesn’t work, since it’s basis is different. Setting a unitless value such as ‘1’ doesn’t work either. Is there some way to normalize this dimension?

  • 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. 2026-05-11T03:30:38+00:00Added an answer on May 11, 2026 at 3:30 am

    The computed value of line-height: normal varies between platforms, browsers (and different versions of the same browser, as you state), fonts, and even different sizes of the same font (see Eric Meyer’s article).

    Setting a unitless value such as…

    body {line-height: 1.2;} 

    …should work to normalize the spacing between browsers. If this is not working, can you provide a more-detailed description of your stylesheet?

    It’s hard (impossible?) to get ‘pixel-perfect’ results, but in order to get results that are as predictable as possible, I try to use a line height that produces a nice round value when multiplied by the font-size. We can’t know the user agent’s default font size, but 16 pixels is somewhat common.

    body  {     font-size: 100%;     line-height: 1.5; } 

    If the user agent’s starting font size is indeed 16 pixels then the line height of 1.5 comes out to a nice, even 24 pixels. Users can and do change the default font size or the page zoom, though, and different browsers have different methods of scaling the page. Nevertheless, I think I’ve had reasonable success for a majority of the users. If I can’t make the line height come out exactly, then I shoot for a little above the integer rather than a little below, because some browsers seem to truncate values rather than round them.

    Also, note that if you use a percentage for the line height, it behaves differently when the value is inherited.

    body  {     font-size: 100%;     line-height: 150%; }  p {     font-size: 75%; } 

    Starting from a base font size of 16 pixels, the line height will be 24 pixels. Within a <p> element the font size becomes 12 pixels, but the line height does not become 18 pixels, rather it remains 24 pixels. This is the difference between line-height: 1.5 and line-height: 150%. When body {line-height: 1.5;} is used, the line height for <p> is 18 pixels.

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

Sidebar

Related Questions

Firefox has a different behavior for right click from Chrome and IE. When I
Firefox has this nice find-a-text-on-the-page dialog, which is non-modal and shows up at the
I've read that Firefox 3.5 has a new feature in its parser ? Improvements
When a user has several Firefox extensions, what decides the order in which they
Firefox has a cool feature which allows me to check the cache. I simple
Firefox 5 introduced auto-updating. I noticed that my installation of FF5 has already updated
Firefox has this annoying behavior that it let's the user drag and drop any
So firefox has a nifty mechanism which will try to autocomplete values in fields
I'm modifying a Firefox extension that has been written by someone else, and I'm
In Firefox 3.6, IE7 and Opera 10 on Windows, this HTML has an odd

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.