Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Problem styling dropdown in IE6 and 7
Old 07-18-2010, 09:54 AM Problem styling dropdown in IE6 and 7
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
I have the following page:
http://bit.ly/9FsY1Q

And have added a jQuery dropdown menu to the main navigation.

It works fine in everything except IE6 and 7 (how shocking), as the dropdown menu displays under the wrong tab.

It's supposed to appear underneath the link that says 'HOW IT WORKS' but in IE it opens under the tab next to it; 'VALUE FOR MONEY'.

I've had this problem in the past and have in fact managed to fix it, but that was a long time ago and I've completely forgotten how to do it!!

Here is the CSS for the menu:
Code:
#nav {
    float: left;
    width: 912px;
    background: url('../image/nav.gif') no-repeat;
    margin: 10px 0 20px;
    padding-left: 28px;
}

#nav li {
    display: inline;
    background: url('../image/nav-li.gif') no-repeat 100% center;
    float: left;
}

#nav li a {
    float: left;
    padding: 14px 5px 15px;
    color: #FFF;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    text-align: center;
    margin-right: 5px;
}

#nav li ul {
    position: absolute;
    width: 140px;
    background: url('../image/nav-li-ul.png') no-repeat 0 100%;
    float: none;
    z-index: 1;
    margin-top: 40px;
    padding: 5px 0;
    visibility: hidden;
}

#nav li ul li {
    display: inline;
    background: none;
    float: left;
}

#nav li ul li a {
    float: none;
    display: block;
    font-size: 11px;
    width: 130px;
    text-align: left;
    padding: 5px 5px 5px 10px;
}

#nav .last {
    background: none;
}
Thanks to anyone who may be able to help
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 07-18-2010, 01:43 PM Re: Problem styling dropdown in IE6 and 7
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The problem is with positioning, which IE7 and below all have a problem with. You are going to have to use conditional comments and separate css files for IE6 and once for IE7 in order to fix it's problems.

In IE6, if you're using the :hover pseudo class on anything other than the <a> tag, you're also going to need the whatever:hover behavior to make that work.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-18-2010, 02:01 PM Re: Problem styling dropdown in IE6 and 7
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
I see! But if I set the positioning for IE6 and 7 like so:
Code:
left:10px;
Then won't it just move the list to 10px from the left of the side of the browser window?

I tried setting the <li> elements as relative so I could fix it in this way, but things got a bit messy
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 07-21-2010, 09:59 PM Re: Problem styling dropdown in IE6 and 7
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
By positioning I meant position:absolute or position:relative along with z-index. IE6 and 7 both have problems with the 'stacking order' of positioned elements.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-21-2010, 10:35 PM Re: Problem styling dropdown in IE6 and 7
vivekar's Avatar
Webmaster Talker

Posts: 612
Trades: 0
Hacking for IE6/7 is too much costly. You will lose time and patience, while trying to please IE. It is better to find a jquery plugin which supports all the browsers. Try Superfish menus.
__________________

Please login or register to view this content. Registration is FREE
(Active since 2003) |
Please login or register to view this content. Registration is FREE
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 07-22-2010, 04:01 AM Re: Problem styling dropdown in IE6 and 7
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Quote:
Originally Posted by vivekar View Post
Hacking for IE6/7 is too much costly. You will lose time and patience, while trying to please IE. It is better to find a jquery plugin which supports all the browsers. Try Superfish menus.
Cool I'll check it out!
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 07-22-2010, 08:25 PM Re: Problem styling dropdown in IE6 and 7
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
Hacking for IE6/7 is too much costly.
First of all, conditional comments is not 'hacking'.
Secondly, if you LEARN what the problems are, they are not all that difficult to solve.

Lastly, I'm of a mind that I just don't support anything except basic plain text for IE6 anymore. Upgrades are FREE, that thing is nearly 10 years old and the sooner we designers stop supporting it, the sooner it will DIE completely!
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-23-2010, 05:24 AM Re: Problem styling dropdown in IE6 and 7
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Quote:
Originally Posted by LadynRed View Post
and the sooner we designers stop supporting it, the sooner it will DIE completely!
I like the sound of that
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Reply     « Reply to Problem styling dropdown in IE6 and 7
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29903 seconds with 12 queries