?
Solved

Misalignment in menu between firefox and internet explorer

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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.
Several part series to implement Internet Explorer 11 Enterprise Mode
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 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