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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:56:40+00:00 2026-06-04T05:56:40+00:00

For some reason, Firefox and Chrome render line-height differently when using text-shadow. CSS: #tracker

  • 0

For some reason, Firefox and Chrome render line-height differently when using text-shadow.

CSS:

#tracker {
    width:200px;
    color:#999;
    font:normal 12px Verdana,sans-serif;/* Swapped out Arial with Verdana */
}

#tracker ol {
    float: right;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    list-style: none;
}

#tracker li {
    float: left;
    margin: 0 0 0 6px;
    padding: 0;
    height: 13px;
    width: 13px;
    color: #666;
    background-color: #ccc;
    border: 1px solid #c0c0c0;
    border-radius: 9px;
    -moz-border-radius: 9px;
    -webkit-border-radius: 9px;
    text-align: center;
    line-height: 13px;
    font-size: 9px;
    text-shadow: 1px 1px 1px #fff;
    overflow: hidden;
}

#tracker li.current {
    color: #fff;
    text-shadow: -1px -1px 1px #033e69;
    font-weight: bold;
    background-color: #13699e;
    border: 1px solid #369;
}
#tracker li span{display:none;}
#step1:before{content:"1"}
#step2:before{content:"2"}
#step3:before{content:"3"}
#step4:before{content:"4"}​

HTML:

<div id="tracker">
    <span class="steps">Steps <span id="current-step">1</span> of 4</span>
    <ol>
        <li id="step1" class="current"><span>Sender</span></li>
        <li id="step2" class="future"><span>Recipient</span></li>
        <li id="step3" class="future"><span>Delivery info</span></li>
        <li id="step4" class="future"><span>Line items</span></li>
    </ol>
</div>

When the text-shadow is below the text (positive numbers) it presses the text up.

Tracker-webkit-firefox

Shouldn’t the text be the same no matter where the shadow is rendered? (as shown in FF and IE?)

The only work-around I have found is to increase the line-height (from 13px to 15px) when shadow is below (using positive numbers), but then it screws it up for non-webkit browsers (Firefox and IE).

Demo of the problem… Any ideas?

UPDATE:
I figured it out and have updated my code. It was a font issue. I was using Arial but when I changed it to Verdana the problem was solved. Very strange!

The solution! 🙂

  • 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-04T05:56:41+00:00Added an answer on June 4, 2026 at 5:56 am

    This appears to be an issue with Arial and Helvetica fonts when rendered at sizes below 10px. Changing the font to Verdana fixes the problem.

    The only part of the code I had to change was the following declaration in the CSS:

    #tracker { 
        /* from this...
        font:normal 12px Arial,Helvetica,sans-serif;*/ 
        /* to this...*/
        font: normal 12px Verdana, sans-serif;
    }
    

    The solution! 🙂

    Alternatively,
    It also works if you use larger font-sizes for Arial or Helvetica, as demonstrated here.
    (But then you need to increase the height & width of the step-circles from 13px to 14px.)

    Here’s the CSS for the larger font version, using Arial or Helvetica:

    #tracker { 
        /* this has changed */
        font: normal 14px Helvetica, Arial, sans-serif;
        /* the rest is the same as before */
        width: 200px;
        color: #999;
    }
    
    #tracker ol {
        float: right;
        margin: 0;
        padding: 0;
        white-space: nowrap;
        list-style: none;
    }
    
    #tracker li { 
        /* these were changed */
        height: 14px;
        width: 14px;
        font-size: 11px;
        /* the rest is the same as before */
        float: left;
        margin: 0 0 0 6px;
        padding: 0;
        border: 1px solid #c0c0c0;
        border-radius: 9px;
        -moz-border-radius: 9px;
        -webkit-border-radius: 9px;
        text-align: center;
        line-height: 1.45em;
        color: #666;
        background-color: #ccc;
        text-shadow: 1px 1px 1px #fff;
        overflow: hidden;
    }
    
    #tracker li.current {
        color: #fff;
        text-shadow: -1px -1px 1px #033e69;
        font-weight: bold;
        background-color: #13699e;
        border: 1px solid #369;
    }
    
    #tracker li span {
        display: none;
    }
    
    #step1:before {
        content: "1"
    }
    
    #step2:before {
        content: "2"
    }
    
    #step3:before {
        content: "3"
    }
    
    #step4:before {
        content: "4"
    }
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It works in IE6, and FireFox; but for some reason not in IE7. Using
The following html code works in Firefox, but for some reason fails in IE
.load() was working fine, but for some reason it's not in Chrome now (presumably
I'm using Express and Node.jx 0.6.7. Server is EC2 Small instance.. For some reason,
Possible Duplicate: css @font-face not working with firefox, but working with chrome and IE
As some of you may already know, there are some caching issues in Firefox/Chrome
I have a treeview on my ASP.Net page and for some reason the text
For some reason, when I try to make a sphere in Java by checking
For some reason that I don't understand, when I create my SurfaceView from an
For some reason my image button keeps overlapping. When i used the Scroll view

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.