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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:30:29+00:00 2026-06-01T02:30:29+00:00

I currently have 4 Divs, each of which contains a hyperlink. Each hyperlink is

  • 0

I currently have 4 Divs, each of which contains a hyperlink. Each hyperlink is a member of the navigation bar at the top of a website. The rightmost link must line up with elements below it. I should be able take a vertical line ruler and see the rightmost elements align at the right-most edge of the page.

My rendered HTML looks great in Chrome, but not in FireFox, or IE: the links are not as wide and the page looks weird because the fourth link doesn’t hit the right edge of the page.

I believe this has to do with font width definitions, however I do not know what to manually set.

FireFox CSS Computed Text:

 font-family    Lucida Sans Unicode
    font-size   16px
    font-weight 600
    font-style  normal
    font-size-adjust    none
    color   #EEFFFF
    text-transform  none
    text-decoration none
    letter-spacing  normal
    word-spacing    0
    line-height 23px
    text-align  start
    vertical-align  baseline
    direction   ltr
    -moz-tab-size   8
    -moz-font-feature-settings  normal
    -moz-font-language-override normal
    -moz-text-blink none
    -moz-text-decoration-color  #EEFFFF
    -moz-text-decoration-line   none
    -moz-text-decoration-style  solid
    text-overflow   clip

Chrome Computed Style:

background-attachment: scroll;
background-clip: border-box;
background-color: #D00;
background-image: none;
background-origin: padding-box;
border-bottom-color: #B00;
border-bottom-style: solid;
border-bottom-width: 1px;
border-left-color: #B00;
border-left-style: solid;
border-left-width: 1px;
border-right-color: #B00;
border-right-style: solid;
border-right-width: 1px;
border-top-color: #B00;
border-top-style: solid;
border-top-width: 1px;
color: white;
cursor: auto;
display: inline;
float: none;
font-family: 'Lucida Sans Unicode';
font-size: 16px;
font-weight: 600;
height: auto;
line-height: 23px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
padding-bottom: 17px;
padding-left: 10px;
padding-right: 10px;
padding-top: 17px;
text-decoration: none;
width: auto;

—Append—

<div id="LinkContainer">
    <div class="Link">
        <a href="a.html" class="mnu-hover">Variable Length Text A</a>
    </div>
    <div class="Link">
        <a href="b.html" class="mnu-hover">Variable B</a>
    </div>
    <div class="Link">
        <a href="c.html" class="mnu-hover">Variable Length Text C Really Long</a>
    </div>
    <div class="Link">
        <a href="d.html" class="mnu-hover">Var D</a>
    </div>
</div>


#LinkContainer
{
    position:absolute;
    float: left;
    margin-top:165px;
    margin-bottom:5px;

    margin-left:225px;

    width:680px;


}

.Link
{
    float:left;
    margin: 0px 1px 0px 1px;
    padding: 00px 0px 20px 0px;
    color: #EFF;
    font-weight:600;
    font-family:Lucida Sans Unicode;
    font-size: 16px;

}

.mnu-hover
{
    background: #C00;
    text-decoration: none; /* color: #FFF; */;
    border: solid 1px #B00;
    padding: 15px 10px 15px 10px;
    margin: 0 0 0 0;
    color: #EEE;
}

.mnu-hover:hover
{
    background: #D00;
    border: solid 1px #B00;
    padding: 17px 10px 17px 10px;
    color: #FFF;
}
  • 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-01T02:30:30+00:00Added an answer on June 1, 2026 at 2:30 am

    This isn’t something you can fix. If the text has to look perfect in every browser on every OS, use an image.

    <ul id="LinkContainer">
        <li class="=Link">
            <a href="a.html" class="var_a mnu-hover">Variable Length Text A</a>
        </li>
        <li class="=Link">
            <a href="b.html" class="var_b mnu-hover">Variable B</a>
        </li>
        <li class="=Link">
            <a href="c.html" class="var_c mnu-hover">Variable Length Text C Really Long</a>
        </li>
        <li class="=Link">
            <a href="d.html" class="var_d mnu-hover">Var D</a>
        </li>
    </ul>
    
    
    .Link a {
        background-image:url(title_sprite.png);
        background-repeat:no-repeat;
        height:40px;
        text-indent:-999em;
    }
    .Link a.var_a {
        background-repeat:no-repeat;
        background-position:0 0;
        width:200px;
    }
    .Link a.var_b {
        background-repeat:no-repeat;
        background-position:0 -45px;
        width:150px;
    }
    .Link a.var_c {
        background-repeat:no-repeat;
        background-position:0 -90px;
        width:75px;
    }
    .Link a.var_d {
        background-repeat:no-repeat;
        background-position:0 -135px;
        width:90px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wrapper div containing 10 thumbnail divs each of which contains 10
I have a row of evenly-spaced navigation items, which looks like this: The currently
Hello everyone! I have a website which is http://www.urbanelementz.ca ... It's currently in development.
I currently have a grid made out of square DIVs (200px x 200px each).
I have little piece of javascript to show/hide divs based on which link is
I have 2 tables, each of which is contained within different divs, similar to
I have three divs: A, B and C. A is currently visible and I
I currently have a functioning in-house Windows Forms application which extensively uses the DataGridView
I have several similar links that trigger different navigation divs to appear. I am
I am currently working on a one-page layout for a website. Each section of

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.