[Solved] Is this possible with CSS Menu - Horizontal?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

[Solved] Is this possible with CSS Menu - Horizontal?

Post by nakkiel »

Is it possible to create two different sized menu levels using CSS menu - horizontal? For instance, can I create 1st level menu with "blocks" of width: 100px & height: 100px; and the second level would be something like, width: 100px; and height: 25px;?

I mean, when I move mouse over the first level, second level opens, just like in normal CSS menu, but the second level would be different size than level 1. I have tried this couple of times, and every time I break the menu ;D
Last edited by nakkiel on Fri Aug 15, 2008 5:12 am, edited 1 time in total.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Is this possible with CSS Menu - Horizontal?

Post by Russ »

There are several CSS menus which do this, often with some Javascript support. Google is your friend, try searching for 'CSS menus'!
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Is this possible with CSS Menu - Horizontal?

Post by KO »

You can do this with normal CSS menu that comes with CMSms. CSS menu that comes with CMS is very SEO friendly and works without JS in most modern browsers (no IE6).
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

Re: Is this possible with CSS Menu - Horizontal?

Post by nakkiel »

Thanks, I'll try it out later when I get back home and add solved to topic if necessary :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Is this possible with CSS Menu - Horizontal?

Post by Dr.CSS »

First is #primary-nav li, second level is #primary-nav li li...
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

Re: Is this possible with CSS Menu - Horizontal?

Post by nakkiel »

mark: Yeah I've tried those, but setting height to those differently is one of the things which breaks the menu...
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Is this possible with CSS Menu - Horizontal?

Post by KO »

What happens when it breaks?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Is this possible with CSS Menu - Horizontal?

Post by Dr.CSS »

Your best bet is to use padding to get the height of your links, in the a is best...
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

Re: Is this possible with CSS Menu - Horizontal?

Post by nakkiel »

KO: First level is okay, but second level's hovers go wacky (a 10px border hovers at the top of the menu item selected and the rest is like a normal menu item without the hover effect) and the menu just doesn't look right.

mark: Doing the same thing using padding works perfectly :)

Thank you all for your quick and helpful replies. Solved.
Post Reply

Return to “Layout and Design (CSS & HTML)”