Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Misalignment in menu between firefox and internet explorer

Posted on 2008-06-16
3
Medium Priority
?
361 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 43

Accepted Solution

by:
David S. earned 2000 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 43

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

Industry Leaders: 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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article discusses four methods for overlaying images in a container on a web page
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Suggested Courses

636 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