Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,613 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 927 people online right now. Registration is fast and FREE... Join Now!




Second button in fly-out not staying "hovered"

 
Reply to this topicStart new topic

Second button in fly-out not staying "hovered"

joeyadms
post 6 Jul, 2008 - 09:12 AM
Post #1


D.I.C Head

Group Icon
Joined: 4 May, 2008
Posts: 145



Thanked 6 times

Dream Kudos: 600

Expert In: PHP, Web Security

My Contributions


I have a css flyout I'm working on. It has 3 levels. Whenever the first level is hovered over and the second menu pops out, the first level button stays hovered.

Whenever you descend into the third level, however, the second level's button does not stay hovered.

I'm looking through it and trying things, but it would be nice to have an extra set of eyes looking at it, I'm sure its right in front of my eyes.

Here is the css
CODE

/* common styling */
.cssfly {
font-family: arial, sans-serif;
width:150px;
height:150px;
position:relative;
margin:0;
font-size:11px;
margin:1px 0;
}
.cssfly ul li a, .menu ul li a:visited {
display:block;
text-decoration:none;  
width:150px;
height:24px;
text-align:left;
padding: 8px 0 0 15px;
border:1px solid #fff;
border-width:1px 1px 0 0;
background: url(menu4.gif) 0 -32px;
color:#FFFFFF;
line-height:19px;
font-size:12px;
}
.cssfly ul {padding:0; margin:0;list-style-type: none; }
.cssfly ul li {float:left; margin-right:1px; position:relative;}
.cssfly ul li ul {display: none;}

/* specific to non IE browsers */
.cssfly ul li:hover a {color:#fff; background:#000; background:  url(menu4.gif);}
.cssfly ul li:hover ul {display:block; position:absolute; top:0; left:166px; width:105px;}
.cssfly ul li:hover ul li a.hide {background:url(menu4.gif); color:#fff;}
.cssfly ul li:hover ul li:hover a.hide {width:150px;}
.cssfly ul li:hover ul li ul {display: none;}
.cssfly ul li:hover ul li a {display:block; background:url(menu4.gif) 0 -32px;color:#fff; width:150px;}
.cssfly ul li:hover ul li a:hover {background:url(menu4.gif); color:#fff;}
.cssfly ul li:hover ul li:hover ul {display:block; position:absolute; left:166px; top:0; color:#000;}
.cssfly ul li:hover ul li:hover ul li a {display:block; width:150px; background:url(menu4.gif) 0 -32px; color:#fff;}
.cssfly ul li:hover ul li:hover ul li a:hover {background:url(menu4.gif); color:#fff;}


The html is just basically
CODE

<div class='cssfly'>
<ul>
<li><a href="#">Level1</a>
      <ul>
          <li><a href="#">Level2</a>
             <ul>
                   <li><a href="#">Level3</a></li>
             </ul>
          </li>
      </ul>
</li>
</ul>
</div>


Thanks for any help
User is offlineProfile CardPM

Go to the top of the page

joeyadms
post 6 Jul, 2008 - 10:22 AM
Post #2


D.I.C Head

Group Icon
Joined: 4 May, 2008
Posts: 145



Thanked 6 times

Dream Kudos: 600

Expert In: PHP, Web Security

My Contributions


nevermind adding the following fixed it

CODE

.cssfly ul li:hover ul li:hover a{background:  url(menu4.gif);width:150px;}
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 02:42AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month