cssmuenu color changing

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
Suniram
New Member
New Member
Posts: 6
Joined: Wed Sep 09, 2009 9:30 am

cssmuenu color changing

Post 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
Fraserm
Forum Members
Forum Members
Posts: 107
Joined: Wed Mar 04, 2009 2:27 pm

Re: cssmuenu color changing

Post 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.
Suniram
New Member
New Member
Posts: 6
Joined: Wed Sep 09, 2009 9:30 am

Re: cssmuenu color changing

Post 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
Fraserm
Forum Members
Forum Members
Posts: 107
Joined: Wed Mar 04, 2009 2:27 pm

Re: cssmuenu color changing

Post 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.
Post Reply

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