Page 1 of 1

Can't modify the "current" class in my top menu

Posted: Thu May 01, 2008 7:42 pm
by Fratyr
Guys, something is strange happening here, or im a noob, but i would like to know and remember for the futher problems those things:

1) Why does my is UNCLICKABLE
2) Why it's black AND i can't change any style to it. I need to make the font-size smaller.

CSS:

Code: Select all

.top_menu ul li a {
	font-family: Tahoma;
	font-size: 13px;
	color: #2b8d8e;
	display:block;
	font-weight: normal;
	text-decoration: none;
	zoom:1;
}

.top_menu ul li.current a{
	color: #173d28;
font-size: 20px;
}
Template MenuMaker: (for current menu item only)

Code: Select all

{if $node->current == true}
<li><a href="{$node->url}" class="current" {if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
Link: http://test2.c14.co.il/trip-information/

Re: Can't modify the "current" class in my top menu

Posted: Thu May 01, 2008 8:07 pm
by Nullig
Try:

.top_menu ul li.currentpage a{

Nullig

Re: Can't modify the "current" class in my top menu

Posted: Thu May 01, 2008 8:10 pm
by Fratyr
Not working.
Maybe an error is hiding in:
.top_menu ul li.currentpage a{

and here is:
url}" class="currentpage" {if $node->target ne ""}

currentpage in CSS to
currentpage in template to

?

Re: Can't modify the "current" class in my top menu

Posted: Thu May 01, 2008 8:24 pm
by Nullig
Are you sure you're looking at the correct menu template.

The class that shows in Firefox for that item is .currentpage.

Nullig