Can't modify the "current" class in my top 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"
Post Reply
Fratyr
Forum Members
Forum Members
Posts: 13
Joined: Thu May 01, 2008 6:40 pm

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

Post 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/
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

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

Post by Nullig »

Try:

.top_menu ul li.currentpage a{

Nullig
Fratyr
Forum Members
Forum Members
Posts: 13
Joined: Thu May 01, 2008 6:40 pm

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

Post 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

?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

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

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

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