CSS Menu Justification IE/Opera Vs. Mozilla

He has: 17 posts

Joined: Jul 2005

I am having an issue with menu text justification at the following:

http://www.geocities.com/doctor_wirehead/index.htm

The issue is that the menu text appears to be justified to the left when viewed in Netscape and Firefox, but appears as desired in Opera and IE.

The CSS code I am using is:

#navlist ul {
margin: 0; /*removes indent IE and Opera*/
padding: 0; /*removes indent Mozilla and NN7*/
list-style-type: none; /*turns off display of bullet*/
text-align: center;
font-size: .72em;
}
#navlist li {
margin: 0;
}
#navlist a {
display: block;
padding: 2px 2px 2px 2px;
border: 1px solid;
border-color: #ddd #000 #000 #ddd;
background-color: #336666;
background-image: url();
background-repeat: no-repeat;
background-position: 0% 50%;
}
#navlist a:link, #navlist a:visited {
color: #fff;
text-decoration: none;
}
#navlist a:hover, #navlist a:active {
background-color: #CAD8D8;
background-image: url();
background-repeat: no-repeat;
background-position: 0% 50%;
color: #2D1E2D;
}

}
#logoDiv {
position: absolute;
left: 0px;
top: 0px;
z-index: 1;
}
#contentdiv {
line-height: 1.5;
background-color: #FFFFFF;
}
#contentdiv p {
font-size: .8em;
}
h1, h2, h3 {
margin: 0 0 6px;
color: #333333;
}
h3 {
margin-top: 16px;
}
p {
margin: 0px 0px 16px;
}
#footer {
font-size: .75em;
margin-top: 36px;
}
-->

#navlist a {height: 1em; float: left; clear: both; width: 100%;}

#navlist a {height: 1em;}

I am not sure what I need to add/change to make it appear somewhat consistent across all browsers. Any help would be appreciated.

Thanks,

Todd

chicgeek's picture

She has: 41 posts

Joined: Jul 2005

In a FF/IE comparison the only difference I could see is the vertical spacing between each navigational entry. The text-alignment appears the same. Perhaps post a screenshot of your desired appearance?

Laura Kishimoto - Webmistress and Soprano
laurakishimoto.ca | fomsc.ca | uwo music sophs

He has: 17 posts

Joined: Jul 2005

chicgeek wrote: In a FF/IE comparison the only difference I could see is the vertical spacing between each navigational entry. The text-alignment appears the same. Perhaps post a screenshot of your desired appearance?

I have attached a screenshot of the menu shown in Netscape and Opera. The way it is displayed in Netscape is the same way it is displayed in Firefox. The way it is displayed in Opera is similar to IE. IE seems to resize it a little larger.

I would like to display the menu the way it is shown in Opera.

For some reason, the text seems to left justify on the buttons and the whole menu is narrower.

Once again, thanks for all help on this.

Todd

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

<!-- Not Used at this time.
#uberlink a:link, #uberlink a:visited,
#uberlink a:hover, #uberlink a:active {
background-color: #999999;
background-image: url();
background-repeat: no-repeat;
background-position: 0% 50%;
color: #2D1E2D;
-->
'

Those are HTMl comments, what you want to use are CSS comments:

/* Not Used at this time.
#uberlink a:link, #uberlink a:visited,
#uberlink a:hover, #uberlink a:active {
background-color: #999999;
background-image: url();
background-repeat: no-repeat;
background-position: 0% 50%;
color: #2D1E2D;
*/
'

It might not be the solution, but, who knows.

He has: 17 posts

Joined: Jul 2005

Renegade wrote:
Those are HTMl comments, what you want to use are CSS comments:

It might not be the solution, but, who knows.

I did try this and it did not work, but thanks for pointing this out. I just learned something new here!

demonhale's picture

He has: 3,278 posts

Joined: May 2005

No problems seen here too... FF and Opera

He has: 17 posts

Joined: Jul 2005

I'm trying to attach the pic of the menus. Hopefully, this will work.

AttachmentSize
Menu.jpg 13.94 KB
demonhale's picture

He has: 3,278 posts

Joined: May 2005

Your screenshot shows the "After" page, your link directs us to the before page...
maybe thats why I see the same in opera and ff/netscape

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.