horizontal menu hover problem

This is a discussion on "horizontal menu hover problem" within the Web Page Design section. This forum, and the thread "horizontal menu hover problem are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 27th, 2007, 22:55
New Member
Join Date: Aug 2007
Location: London
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
horizontal menu hover problem

Hi,

I have a horizontal menu with a horizontal drop down. I`m using a list for the drop down and setting it to be horizontal in the css with
display: inline; The menu pops down correctly when I hover over the top level but when I go to select the menu item in the second drop down horizontal level the drop down disapears. If I don`t use the display: inline; then the menu works. Is there a way of fixing this??

Thanks

Darran

Code: Select all
 
#menu ul { 
margin-bottom: 8px;
border-top: solid 4px #490B70;
border-bottom: solid 1px #490B70;
padding-top: 1px;
padding-bottom: 1px;
text-align: right;
height: 17px;
line-height: 1px;
font-size: 1px;
cursor: default;
list-style-type: none;
}

#menu li
{
display: inline;
}

#menu ul li ul {
top:135px;
position: absolute;
border-top: 0;
border-bottom: 0;
text-align: right;
height: 17px;
line-height: 1px;
font-size: 1px;
cursor: default;
list-style-type: none;
}

div#menu ul li ul
{
display: none;
}

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

#secnav-whoweare{
right:650px;
}

#secnav-whatwedo{
right:500px;
}

#secnav-whowehelp{
right:400px;
}

#secnav-partners{
right:400px;
Code: Select all
}

Reply With Quote

  #2 (permalink)  
Old Aug 27th, 2007, 22:56
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: horizontal menu hover problem

Could you upload this to host? it's easier to see problems that way
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #3 (permalink)  
Old Aug 28th, 2007, 08:00
New Member
Join Date: Aug 2007
Location: London
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: horizontal menu hover problem

Hi Alex,
I`m unable to upload to host as I dont appear to have the right permissions. But the CSS I posted is what my menu consists of. I was just wondering if its possible to do a horizontal list with a horizontal drop down the way I`ve implemented it. I`m kind of new to CSS.

thanks

Darran
Reply With Quote
  #4 (permalink)  
Old Aug 28th, 2007, 13:39
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: horizontal menu hover problem

Quote:
Originally Posted by darran View Post
Hi,

I have a horizontal menu with a horizontal drop down. I`m using a list for the drop down and setting it to be horizontal in the css with
display: inline; The menu pops down correctly when I hover over the top level but when I go to select the menu item in the second drop down horizontal level the drop down disapears. If I don`t use the display: inline; then the menu works. Is there a way of fixing this??

Thanks

Darran

Code: Select all
 
#secnav-whatwedo{
right:500px;
}

#secnav-whowehelp{
right:400px;
}

#secnav-partners{
right:400px;
Code: Select all
}

What's this part supposed to be doing?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #5 (permalink)  
Old Aug 28th, 2007, 16:40
New Member
Join Date: Aug 2007
Location: London
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: horizontal menu hover problem

Hi Alex,
Its fine I fixed the issue. It was to do with me not defining the anchors/images to be display:inline and padding also seemed to have an effect.

First time I`ve done any CSS and I`m glad I`m a server side Java developer, CSS is too much of a dark art for me .

Thanks for your repsonses Alex.
Reply With Quote
  #6 (permalink)  
Old Aug 28th, 2007, 16:43
New Member
Join Date: Aug 2007
Location: London
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: horizontal menu hover problem

heres the code for anyone else interested.
Also this was a good example of a horizontal menu
http://www.alistapart.com/articles/hybrid

Code: Select all
#menu ul
{ margin-bottom: 8px; border-top: solid 4px #490B70; border-bottom: solid 1px #490B70; /*padding-top: 1px; padding-bottom: 1px;*/ padding: 3px; text-align: right; height: 17px; line-height: 1px; font-size: 1px; cursor: default; list-style-type: none; }
#menu li
{
display: inline; }
#menu ul li ul
{ top:135px; position: absolute; border-top: 0; border-bottom: 0; text-align: right; height: 17px; line-height: 1px; font-size: 1px; cursor: default; list-style-type: none; text-decoration: none; display: none; }
#menu li a img
{ display: inline; padding: 3px; z-index: 6000; text-decoration: none; }
#menu li a
{ display: inline; padding: 3px; z-index: 6000; }
div#menu ul li ul
{
display: none; }
/*li.over is a work around for ie 5/6 lack of support for :hover, associated javascript in script.js*/
div#menu ul li:hover ul, #menu li.over ul
{
display: block; text-decoration: none; z-index: 6000;
}
Reply With Quote
  #7 (permalink)  
Old Aug 28th, 2007, 16:43
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: horizontal menu hover problem

Glad you got it working then
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
Reply

Tags
horizontal menu hover

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed on horizontal css menu dreamabstract Web Page Design 1 Apr 24th, 2008 16:51
Horizontal Menu Using Lists Problem josephman1988 Web Page Design 5 Oct 26th, 2007 14:13
Problem displaying a horizontal menu cmssken1 Web Page Design 1 Apr 19th, 2007 16:34
CSS horizontal menu trademarkd Web Page Design 1 Jan 9th, 2007 07:10
horizontal drop-down menu da_stimulator JavaScript Forum 2 Nov 4th, 2004 11:16


All times are GMT. The time now is 19:13.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43