Category Menu Active Link

6 posts by 3 authors in: Forums > CMS Builder
Last Post: March 30, 2009   (RSS)

Hi

Is there a way of styling a category menu breadcrumb so that when a link is active it changes colour or becomes bold? I've tried the :active in CSS but it doesn't seem to want to play.

Re: [Perchpole] Category Menu Active Link

Hi folks,

You might also want to put a style link on the page itself to make sure that there's nothing in your external style sheets that's conflicting. Like:

<style type="text/css">
a.breadcrumb:link { font-family:Verdana; color: #ffffff; font-size: 0.68em; font-weight: bold; text-decoration: none;}
a.breadcrumb:visited { font-family:Verdana; color: #ffffff; font-size: 0.68em; font-weight: bold; text-decoration: none;}
a.breadcrumb:hover { font-family:Verdana; color: #ffffff; font-size: 0.68em; font-weight: bold; text-decoration: underline; }
a.breadcrumb:active { font-family:Verdana; color: #ffffff; font-size: 0.68em; font-weight: bold; text-decoration: none;}
</style>

And then calling the "breadcrumb" class in your link

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Category Menu Active Link

Hi Folks

Thanks for your replies I'm using the category menu dynamically and want the page that it lands on to be a different bold. Not sure if the active link is going to do that. Is there any php code I can use maybe an if statement?

Re: [chassa2556] Category Menu Active Link

Just thinkin' outloud

Have you tried an "if" statement in the head that controls the stylesheet?

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Category Menu Active Link

Thanks for this Jerry - could you expand on this please? How would that 'if' statement run?