Solved

Misalignment in menu between firefox and internet explorer

Posted on 2008-06-16
3
348 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

691 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