[themes] Highlighting active leaf in book navigation.

Jason Flatt drupal at oadaeh.net
Thu Jun 28 20:07:01 UTC 2007


On Thursday 28 June 2007 11:13:22 Stephen Wills wrote:
> I have css elements to color the individual page titles in the block
> book-navigation and as I hover over them they changes colors and all
> is right with the world except I would like to highlight the page
> title of the currently viewed page.  I am wondering if anyone knows a
> CSS trick that will redefine the .leaf class when the anchor element
> it encloses is of class=active?
>
> Thanks.

This works for me:

li a.active {
  color: <whatever>;
}


-- 
Jason Flatt
http://www.oadaeh.net/
Father of Six:  http://www.flattfamily.com/ (Joseph, 14; Cramer, 12; Travis, 
10; Angela; Harry, 7; and William, 12:04 am, 12-29-2005)
Linux User:     http://www.xubuntu.org/
Drupal Fanatic: http://drupal.org/


More information about the themes mailing list