Solved

Misalignment in menu between firefox and internet explorer

Posted on 2008-06-16
3
327 Views
Last Modified: 2013-12-08
Experts,

When you hover over one of the links in the drop down menu on this site, in firefox it cuts off part of the button, but in internet explorer it renders it properly. What gives?

http://wellsresearch.com/webdev/wellsresearchv2/index.asp

Thanks in advance,
-Lyell Roeder
0
Comment
Question by:lyellr
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 21798148
It's different in IE6 than it is in IE7 and non-IE browsers because you're using the ugly hack that puts conditional comments and <table>s inside the <a>s of your menu.

You're missing a "(" from this rule:

.menu2 li:hover > a.top_link {color:#fff; background: urlimages/buttons/button4.gif) no-repeat;}

change it to this:

.menu2 li:hover > a.top_link {color:#fff; background: url(images/buttons/button4.gif) no-repeat;}

Why did you not do the following anyway?
.menu2 li a.top_link:hover,
.menu2 li:hover > a.top_link {color:#fff; background: url(images/buttons/button4.gif) no-repeat;}
.menu2 li a.top_link:hover span,
.menu2 li:hover > a.top_link span {background:url(images/buttons/button4.gif) no-repeat right top;}
.menu2 li a.top_link:hover span.down,
.menu2 li:hover > a.top_link span.down {background:url(images/buttons/button4a.gif) no-repeat right top;}

Open in new window

0
 

Author Closing Comment

by:lyellr
ID: 31467730
What's the advantage of implementing those six lines of code?
0
 
LVL 42

Expert Comment

by:David S.
ID: 21806861
> What's the advantage of implementing those six lines of code?

It's more efficient. You aren't repeating the same rules with different selectors.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question