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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:36:33+00:00 2026-05-19T23:36:33+00:00

I currently have an issue where Firefox is taking away 1-2 pixels of padding

  • 0

I currently have an issue where Firefox is taking away 1-2 pixels of padding around some text which is in a div. Before writing too much, I will show some pics and post the code so you know what I mean. It might just be the way Firefox renders. Anywho code and pics below:

Chrome/Safari/Ie Screen:

enter image description here

Firefox Screen:

enter image description here

And here is the code:

html page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>
    <head>
        <title>Test Page One</title>
        <LINK REL=StyleSheet HREF="stylesheets/test.css" TYPE="text/css" MEDIA=screen>      
    </head>
    <body>
        <div class="single_label blue_label">Test<div class="remove"></div></div>
    </body>
</html>

Css:

.single_label{ 
  float: left; 
  padding-right: 5px; 
  padding-left: 7px; 
  height: 14px; 
  color: black; 
  font-size: 10px; 
  font-family: Helvetica, Verdana, Arial, sans-serif; 
  text-align: left; 
  width: 74px; 
  vertical-align: bottom
}

.blue_label {
  background-color: #3acbff;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

So can anyone tell me why Firefox is rendering like this and how to fix this?

  • 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-19T23:36:33+00:00Added an answer on May 19, 2026 at 11:36 pm

    Add line-height to your css. I also suggest you to add shorthand properties.

    Here is a working solution (with old/new comparsion): http://jsfiddle.net/dncxK/1/

    enter image description here

    .single_label {
        color:#000;
        float:left;
        font:10px/16px Helvetica, Verdana, Arial, sans-serif;
        padding:0 5px 0 7px;
        text-align:left;
        vertical-align:bottom;
        width:74px;
        height:14px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a issue with firefox, where all other browser behave in the
I'm having an issue with multiple markers on google maps - I currently have
I currently have 4 textboxes which will be used to store an ip address.
I have an issue with my ExternalInterface. The way it is currently set up
I'm currently having problems with Internet Explorer 8 ignoring padding/line-heights that I have on
Currently, I have an issue with populating an iframe that I have with a
I am currently working on http://thetradinghouse.co.nz and I have an issue when accessing the
I have run into an issue in which IE does not open up the
I have a challenge I need some input on. I am currently recruiting programmers
I have a problem with my jquery UI tabs currently only in Firefox 3.6.24

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.