Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 5:55 am (All times are UTC )

 




Post new topic Reply to topic  [ 2 posts ] 
Author Message
Posted: Sat Jul 14, 2007 7:40 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat May 13, 2006 5:50 pm
Posts: 97
Hello:

I'm having an issue with current menu highlighting in 1.5.  I only want a different style designated for the current menu item.  I see that in the code, it generates the li id "current" which seems to be what I want to add to my stylesheet, however when I add a class for .current, it ends up highlighting all of the child menus as well.  I wouldn't want the parent nor the child menu to be a different state, ONLY the current menu item.

Advice?  Thanks...


Top
  E-mail  
 
Posted: Sun Aug 05, 2007 11:17 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Mon Sep 12, 2005 7:41 pm
Posts: 1374
Location: Glasgow - Scotland
Instead of adding a class (.current) you need to add an ID (#current) like this:

Code:
li#current {
your:style rules;
}


Hope this helps,

Waseem

_________________
http://www.bulletprooftemplates.com/ - New Joomla 1.5 templates from an old Joomla head
If you don't know the answer don't be afraid to ask someone who does


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group