Brian wrote:
Charon wrote:
While using the following to self link documents
<a href="#NAME"></a>
Is there a way to dynamicaly bold, underline, or highlight the target
Such a thing is possible using css 3's :target pseudo-class. Using
your html example above, place the following in your styles:
a#name:target {
font-weight: bold;
}
oops. That's bogus. The above css declaration would work with an id,
but not the a href="name" contruct given. Sorry. Try something like
<a href="foo.html" id="name">foo resource</a>
Here's a better example:
<h2 id="name">project name</h2>
#name:target {
font-weight: bold;
}
better still:
<ul id="toc">
<li><a href="#name">project name</a></li>
<li><a href="#goal">project goals</a></li>
<li><a href="#timeline">project timeline</a></li>
</ul>
<h2 id="name">project name</h2>
<!-- content -->
<h2 id="goal">project goals</h2>
<!-- content -->
<h2 id="timeline">project timeline</h2>
<!-- content -->
h2:target {
font-weight: bold;
}
--
Brian
follow the directions in my address to email me