I think, if I&#39;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 &quot;id&quot; for each &lt;body&gt; 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> &lt;<a href="mailto:mark@markhope.net">mark@markhope.net</a>&gt; 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>&nbsp; </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>&nbsp; </span>color: &lt;whatever&gt;;</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;">&lt;li class=&quot;leaf&quot;&gt;&lt;a href=&quot;/&quot; class=&quot;active&quot;&gt;example&lt;/a&gt;&lt;/li&gt;</span></div><div><font face="Helvetica"><br></font></div>
<div>I don&#39;t think there is a way of doing that with CSS.</div><div><br></div><div>Maybe there&#39;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¤