Solved

Misalignment in menu between firefox and internet explorer

Posted on 2008-06-16
3
292 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
Comment Utility
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
Comment Utility
What's the advantage of implementing those six lines of code?
0
 
LVL 42

Expert Comment

by:David S.
Comment Utility
> 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now