CSS help

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


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 9th, 2005, 18:10
New Member
Join Date: Dec 2005
Age: 31
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question CSS help

Hi

I've used this tutorial to build my vertical dropdown menu. It's excelent but I can't make a sub-menu within another sub-menu, why? can anybody help me?

here is my CSS code:

Quote:
body {
font: normal 11px verdana;
}
ul {
display: block;
margin: 0;
padding: 0;
list-style: none;
width: 180px; /* Width of Menu Items */
border-bottom: 1px solid #ffffff;
}

ul li {
position: relative;
display:block;
left: 0px;
top: 0px;
}

li ul {
position: absolute;
left: 179px; /* Set 1px less than menu width */
top: 0px;
display: none;
}
/* Styles for Menu Items */
ul li a {
display: block;
text-decoration: none;
color: #ffffff;
background: #363C4C; /* IE6 Bug */
padding: 6px;
border: 1px solid #ffffff;
border-bottom: 0;
}
/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; height: 1%; }
* html ul li a { height: 1%; }
/* End */
ul li a:hover { color: #363C4C; background: #B9B6A4; } /* Hover Styles */

li ul li a { padding: 6px 6px; } /* Sub Menu Styles */

li:hover ul, li.over ul {
display: block;
} /* The magic */
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 9th, 2005, 19:32
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS help

moved thread to css forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 9th, 2005, 20:20
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS help

These rules:
li ul li a { padding: 6px 6px; } /* Sub Menu Styles */

li:hover ul, li.over ul {
display: block;
} /* The magic */

only specify the rules for one sub-level.

I'm not sure how it might work out, but if you double up your "cascade", it might work...

For example:
li ul li ul li a { padding: 6px 6px; } /* Sub Menu Styles */

li:hover ul li ul, li.over ul li ul {
display: block;
} /* The magic */

But... this is all a guess...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 10th, 2005, 13:15
New Member
Join Date: Dec 2005
Age: 31
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS help

Thanks anyway, but unfortunately did not work

If someone knows this please help me.

Thanks

Last edited by simonsays; Dec 10th, 2005 at 13:17.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, help

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


All times are GMT. The time now is 18:22.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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