PDA

View Full Version : CSS problem in Navbar


The Answer
12-17-2002, 02:45 AM
Okay, I am redefining a css style for the navbar so that it displays light gray links instead of the black that the rest of the forum uses.

I got it to partially work, it does the first link, but for the subforum links it goes back to the original css defined for the rest of the page.

Here is the relevant part of my navbar template:

<style>
a.toplink { color: #999999; }
a.toplink:hover { color: #000000; }
a.toplink:visited { color: #999999; }
a.toplink:active { color: #999999; }
</style>

<a class="toplink" href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt; $navbits</b></font>


Here is the relevant HTML that is generated for this:


<style>
a.toplink { color: #999999; }
a.toplink:hover { color: #000000; }
a.toplink:visited { color: #999999; }
a.toplink:active { color: #999999; }
</style>
<a class="toplink" href="index.php?">NFL2KX.COM Forums</a>
&gt;
<a href="forumdisplay.php?forumid=3">NFL2K3 Discussion</a>
&gt;
<a href="forumdisplay.php?forumid=4">NFL2K3 General Discussion</a> &gt; Old Sticky Made New: Full Manuals
</b>


And finally, a screenshot, all three of these links should be light grey, but only the first one is grey:
http://www.nfl2kx.com/Images/help2.jpg

Thanks in advance :dead: