Has anyone made a multicolored menu?

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"
Locked
Dramatic

Has anyone made a multicolored menu?

Post by Dramatic »

Has anyone modified cssmenu.tpl where each top level entry (and its drop-down) has a specific colour (applied via a class)? I guess it would have to pick up the class parameter from an attribute of the target page.

(i.e. the website would have 7 or 8 sections corresponding to the top level items, with either a template per section or colour theme applied via an id or class on the body element - and this theme would carry through to the menus.

See the attached image
Attachments
rainbowmenu.png
Peciura

Re: Has anyone made a multicolored menu?

Post by Peciura »

You could start with tag

Code: Select all

 class="menu_branch_{$node->hierarchy|truncate:1:""}"

Post should be moved to Community bord. May be Layout and Design.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Has anyone made a multicolored menu?

Post by Dr.CSS »

Yes look to the products part of this menu...

http://blueoakom.com/
jhoulston
New Member
New Member
Posts: 8
Joined: Wed May 06, 2009 12:40 pm

Re: Has anyone made a multicolored menu?

Post by jhoulston »

I too would be interested in this effect as well.  I have tried to give it a go but never succeeded!

James.
Locked

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