Want to thank and support me for my work?
Buy my iWebFAQ.org E-Book (15$) (reviews) (sample) or...
iWebFAQ.org is presented by Cédric and hosted by HostExcellence
It is currently Thu May 23, 2013 11:18 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Keeping Top Level of Drop Down Highlighted When in Submenu
Author Message
 Post subject: Keeping Top Level of Drop Down Highlighted When in Submenu
PostPosted: Mon Jan 16, 2012 6:08 pm 
Offline

Joined: Mon Jan 16, 2012 5:51 pm
Posts: 2
I've created a drop down menu with cssmaker and wondered if there is a way to modify the code so that when in a sub-menu the top/main category stays "highlighted" (either text, background, or both) so the user knows what main category they are in?


Top
 Profile Send private message  
 
Keeping Top Level of Drop Down Highlighted When in Submenu
Author Message
 Post subject: Re: Keeping Top Level of Drop Down Highlighted When in Subme
PostPosted: Mon Jan 16, 2012 9:15 pm 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
Solution...

Each category gets its own menu code which you apply to all pages in that category. In the link of the category add class="chosencategory" hence it gets

<li><a class="chosencategory" href="Your URL">Category name</a></li>

In the style_menu.css file add

.menu li a.chosencategory {
background: #2580a2 url("images/hover.gif") bottom center no-repeat;
color:#FFFFFF;
text-decoration:none;
}

This way the chosen category appears as if people would hover over it. This is if you're using the standard menu as found in the example on my website.

Regards,
Cédric

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Keeping Top Level of Drop Down Highlighted When in Submenu
Author Message
 Post subject: Re: Keeping Top Level of Drop Down Highlighted When in Subme
PostPosted: Wed Jan 18, 2012 7:28 pm 
Offline

Joined: Mon Jan 16, 2012 5:51 pm
Posts: 2
Many thanks!


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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:  






Want to support me for my work?

or buy my iWebFAQ.org E-Book (15$)

(reviews) (sample)

Thanks,
Cédric



 

This website is hosted by HostExcellence



© 2008, 2009 Powered by phpBB Group
Macinscott 3 style by Scott Stubblefield