Page 1 of 1

cssmuenu color changing

Posted: Wed Sep 09, 2009 10:20 am
by Suniram
Hello,

I use cssmenu.tpl included in the original package on my site.

I want to change the background color of the nav.

"Help" tells me that I have to import cssmenu into my database. So far so goot. Then the code looks like this:


that is active. *}
{if $count > 0}


{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string='' times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string='' times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}

current == true}

haschildren == true}

type == 'sectionheader' and $node->haschildren == true}
{$node->menutext}{elseif $node->type == 'separator'}
{else}

type != 'sectionheader' and $node->type != 'separator'}
{if $node->target}target="{$node->target}" {/if}
href="{$node->url}">{$node->menutext}
{elseif $node->type == 'sectionheader'}
>{$node->menutext}
{/if}
{/foreach}
{repeat string='' times=$node->depth-1}




{/if}


.. how can I change the background color of the nav? Is this Java oder css? I'm confused. ???

thanks a lot
yours

Re: cssmuenu color changing

Posted: Wed Sep 09, 2009 10:06 pm
by Fraserm
The code you've pasted there is the template, you need to be looking in whatever menu css file you have linked.

Look in that template, you see the class calls like "primary-nav"? Find those classes in the css file and start editing.

If you don't know what you're doing, I suggest you copy the whole contents of the original css file into another file before you start editing, just in case you break it.

Re: cssmuenu color changing

Posted: Thu Sep 10, 2009 1:03 pm
by Suniram
Thanx alot,

my prob is, that i can't find the nav divs in the css file provided with the custom template. Is ist possible that the css code of the nav is located in another file (maybe a file provided with the installation?)

thx

Re: cssmuenu color changing

Posted: Thu Sep 17, 2009 3:16 pm
by Fraserm
Several different sample CSS files are provided with the sample content.

From memory one is a horizontal menu structure and the other vertical, although there are probably others.

Did you install the sample content when you did your installation? If you did then you need to look at the stylesheets you have in your system and link one of them to your page templates. It's the menu CSS files that contain all the 'primary-nav' etc stuff.

You might find http://forum.cmsmadesimple.org/index.php/topic,37111.0.html helpful.