CSS Menu Justification IE/Opera Vs. Mozilla
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 posted this at 04:23 — 5th August 2005.
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
tstach posted this at 13:39 — 5th August 2005.
He has: 17 posts
Joined: Jul 2005
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 posted this at 06:21 — 5th August 2005.
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.
tstach posted this at 13:48 — 5th August 2005.
He has: 17 posts
Joined: Jul 2005
I did try this and it did not work, but thanks for pointing this out. I just learned something new here!
demonhale posted this at 10:02 — 5th August 2005.
He has: 3,278 posts
Joined: May 2005
No problems seen here too... FF and Opera
tstach posted this at 13:46 — 5th August 2005.
He has: 17 posts
Joined: Jul 2005
I'm trying to attach the pic of the menus. Hopefully, this will work.
demonhale posted this at 18:05 — 5th August 2005.
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.