/    Sign up×
Community /Pin to ProfileBookmark

CCS Vertical Popout menu

Hello All,

I am designing a website for someone and I have made a vertical menu which has one ‘pop out UL’ in it. But when one hovers over it and it pops out, it does not stay out long enough for someone to be able to click on it?

Any idea what could be wrong?

This is my CSS code:

.menu{margin:0px; margin-bottom:15px; padding:0; width:200px; list-style:none;background:rgb(255,255,255); top:0px;}

.menu li{padding:0; margin:0 0 1px 0; height:40px; display:block; position: relative; }

.menu li a{text-align:left;height:40px; padding:0px 25px; font:16px Verdana, Arial, Helvetica, sans-serif; color:rgb(196,21,28); display:block; background:url(‘images/verMenuImages.png’) 0px 0px no-repeat; text-decoration:none;}

.menu li a:hover{background:url(‘images/verMenuImages.png’) 0px -40px no-repeat; color:rgb(255,255,255);}

.menu li a.active, .menu li a.active:hover{background:url(‘images/verMenuImages.png’) 0px -80px no-repeat; color:rgb(255,255,255);}

.menu li a span{line-height:40px;}

#menu ul ul {
position: absolute;
top: 0;
left: 200px; /* to position them to the right of their containing block */
width: 200px; /* width is based on the containing block */
display:block;
padding: 0.5px;
margin: 0px;
}

#menu ul ul
{
display:none;
}

#menu ul li:hover ul
{
display:block;
}

div#menu ul li:hover ul:hover
{
display:block;
background-color:Aqua;
}

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@ryanbutlerAug 13.2009 — You need to steer away from pure CSS menu's, and go toward a JavaScript/CSS solution. Pure CSS menu's have accessibility problems, such as being able to reliably predict mouse behavior and not having timers built in to allow delay and hold of a menu opening and closing.
Copy linkTweet thisAlerts:
@tb2500authorAug 13.2009 — You need to steer away from pure CSS menu's, and go toward a JavaScript/CSS solution. Pure CSS menu's have accessibility problems, such as being able to reliably predict mouse behavior and not having timers built in to allow delay and hold of a menu opening and closing.[/QUOTE]

Hey RyanButler,

Thanks for your reply. Any suggestions on where I could find such JavaScript type menus? That I can adjust in colors etc?

TB
×

Success!

Help @tb2500 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.10,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...