Unordered List Based

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
kdc415
Beginner
Beginner
Posts: 1
Joined: Tue May 26, 2009 8:31 pm

Unordered List Based

Post by kdc415 »

I'm using unordered lists to create a horizontal menu using the buildListMenu function. Is there not a way to style the submenus differently than the main menu items?

Otherwise the menus look ridiculous when I begin to style the menu separator the way I want or if I use a separator image. For instance setting the separatorheight to 6 shortens the height of the bar on the main menu the way we like, but then on the submenus they're now increased to 6 tall! Having 1 property effect the vertical separator bar on the main menu items and the horizontal bars on the submenu items doesn't make sense to me, but this is my first time setting up a menu.

Any help appreciated.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Unordered List Based

Post by Ruth »

Hi,

If you look at the source on the listbased menu sample in the download you'll see that you can create other styles. So, say you have menuStyle and then you create a second style called menuStyle2. Then in the actual listbased menu you'd code

Code: Select all

<ul class=menuStyle2>
When you open that example in the extras/listbased folder of the download and mouse over the last item in the top horizontal menu you'll see the difference.

Ruth
Post Reply