I think, if I'm understanding it well, that you can do that with css.<br><br>Example: <a href="http://www.456bereastreet.com/archive/200501/turning_a_list_into_a_navigation_bar/">http://www.456bereastreet.com/archive/200501/turning_a_list_into_a_navigation_bar/
</a><br><br>The quid is at step 10. This is done with diferent "id" for each <body> tag (you probably will have to code some php to change it dinamically...).<br>This example uses list but you can use it with whatever element.
<br><br>Greets (first post... back to lurk)<br>Heitor Real<br><br><div><span class="gmail_quote">On 28/06/07, <b class="gmail_sendername">Mark Hope</b> <<a href="mailto:mark@markhope.net">mark@markhope.net</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><span class="q">
<br><div><div>On 28 Jun 2007, at 21:07, Jason Flatt wrote:</div><br><blockquote type="cite"><div style="margin: 0px;">On Thursday 28 June 2007 11:13:22 Stephen Wills wrote:</div> <blockquote type="cite"><div style="margin: 0px;">
I have css elements to color the individual page titles in the block</div><div style="margin: 0px;">book-navigation and as I hover over them they changes colors and all</div><div style="margin: 0px;">is right with the world except I would like to highlight the page
</div><div style="margin: 0px;">title of the currently viewed page.<span> </span>I am wondering if anyone knows a</div><div style="margin: 0px;">CSS trick that will redefine the .leaf class when the anchor element</div><div style="margin: 0px;">
it encloses is of class=active?</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">Thanks.</div> </blockquote><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">
This works for me:</div><div style="margin: 0px; min-height: 14px;"><br></div><div style="margin: 0px;">li a.active {</div><div style="margin: 0px;"><span> </span>color: <whatever>;</div><div style="margin: 0px;">}
</div><div style="margin: 0px; min-height: 14px;"><br></div></blockquote></div><div><br></div></span><div>That would target the a tag. I think Stephen wants to target the parent li tag when the child has a class of active?
</div><div><span style="font-family: Helvetica;"><li class="leaf"><a href="/" class="active">example</a></li></span></div><div><font face="Helvetica"><br></font></div>
<div>I don't think there is a way of doing that with CSS.</div><div><br></div><div>Maybe there's a way of adding a class to the .leaf using php in template.php...</div><div><span style="font-family: Helvetica;"><a href="http://drupal.org/node/72013" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://drupal.org/node/72013</a></span></div><span class="sg"><div><br></div><div><br></div><div>Mark</div><div><div style="margin: 0px;"><font face="Helvetica"><br></font></div> </div></span></div><br>_______________________________________________
<br>themes mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:themes@drupal.org">themes@drupal.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.drupal.org/mailman/listinfo/themes" target="_blank">
http://lists.drupal.org/mailman/listinfo/themes</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Xamataca<br>¤Galiza¤