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
Wierd behaviour with dropdown
Old 07-13-2008, 01:54 PM Wierd behaviour with dropdown
Webmaster Talker

Posts: 626
Trades: 0
I've been working on a new layout for my site and just decided to do drop downs. ** I didn't know until today that IE7 natively supports the :hover pseudo class on the LI element. That's pretty cool.

Anyway... IE7: When you hover over the top tab (Residential), you will notice that the dropdown apppears. It is in the proper position however I can't seem to get rid of the margin on the left where the red background is still showing.

FF2: When you hver over the same tab, it appears as I intended but it disappears when you try to go to a sub-tab.

Can anyone see what I have done wrong here?

http://www.mysamplesite.info

Here is the relevant CSS:
Code:
/**********************************************************************/
/****     menu-left    ************************************************/
/**********************************************************************/
#menu-container {
   float: left;
   width: 200px;
   z-index: 5;
}

#menu-left {
   width: 200px;
   padding: 0;
   margin: 153px 0 0 0;
   list-style: none inside none;
}

#menu-left li {
   position: relative;
   background: #848484;
   margin-left: 10px;
   margin-bottom: .2em;
   height: 53px;
   border-top: 1px solid #bdbdbd;
   border-bottom: 1px solid #484848;
   border-left: 1px solid transparent;
}

#menu-left li img {
   position: absolute;
   left: -5px;
   top: -1px;
}

#menu-left li a:link, #menu-left li a:visited {
   display: block;
   width: 90%;
   height: 38px;
   color: white;
   font-family: "Myriad Pro SemiCond", "Myriad Pro", Verdana, "Bitstream Vera Sans";
   font-size: 19px;
   text-decoration: none;
   padding-left: 10%;
   padding-top: 15px;
}

#menu-left li a:hover {
   color: black;
}

#menu-left li ul {
   display: none;
   position: absolute;
   right: -200px;
   top: 0px;
   background: red;
   width: 200px;
   height: 100px;
   list-style: none inside none;
   margin: 0;
   padding: 0;
   z-index: 20;
}

#menu-left li:hover ul {
   display: inline;
}

#menu-left li ul li {
   padding: 0;
   margin: 0;
}
jim.thornton is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-16-2008, 12:45 PM Re: Wierd behaviour with dropdown
Novice Talker

Posts: 14
Name: Rik Weber
Trades: 0
The Firefox problem appears to be you <div class="shadow"></div> getting in the way of the left hand menu.

The IE problem might be down to default browser styling. Make sure all padding and margins are removed from your ul's and li's.

Hope this helps!
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
bobming is offline
Reply With Quote
View Public Profile
 
Old 07-16-2008, 05:03 PM Re: Wierd behaviour with dropdown
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
The Firefox problem appears to be you <div class="shadow"></div> getting in the way of the left hand menu.
I agree, that's exactly what I'm seeing too. I suggest you use a background on the <li> or the <a> that will be the entire button, shadow and all.

IE6 isn't even showing that shadow div.

By the way.. did you mean to have the whole site right-aligned ? That's what I'm seeing in FF3.
__________________
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
 
Reply     « Reply to Wierd behaviour with dropdown
 

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.23999 seconds with 12 queries