Forum Moderators: not2easy

Message Too Old, No Replies

targeting a specific tag

<ul><li><a>

         

monstordh

6:35 pm on May 24, 2006 (gmt 0)

10+ Year Member



Quick question here. I need to know the proper syntax for targetting a specific set of tags. Here's an example of the HTML:


<ul class="pdf">
<li><a href="pdf/cvna_minutes_oct05.pdf">October 2005</a></li>
<li><a href="pdf/cvna_minutes_sept05.pdf">September 2005</a></li>
<li><a href="pdf/cvna_minutes_aug05.pdf">August 2005</a></li>
<li><a href="pdf/cvna_minutes_july05.pdf">July 2005</a></li>
<li><a href="pdf/cvna_minutes_jun05.pdf">June 2005</a></li>
<li><a href="pdf/cvna_minutes_may05.pdf">May 2005</a></li>
<li><a href="pdf/cvna_minutes_apr05.pdf">April 2005</a></li>
<li><a href="pdf/cvna_minutes_mar05.pdf">March 2005</a></li>
<li><a href="pdf/cvna_minutes_feb05.pdf">February 2005</a></li>
<li><a href="pdf/cvna_minutes_nov04.pdf">November 2004</a></li>
<li><a href="pdf/cvna_minutes_oct04.pdf">October 2004</a></li>
</ul>

here's what I've got for the CSS, but it's not working:


ul.pdf li a:link {
background-color: #000066;
}

i've tried several variations of this to no avail. i'm sure it's a simple syntax of which i'm not aware. any help will be greatly appreciated.

ps. the reason i'm using a class, verses an id, is that I need the ability to use this multiple times on the same page in different sections.

4hero

8:30 pm on May 24, 2006 (gmt 0)

10+ Year Member



Hi,

.pdf li a {background-color: #000066;}

should work?

monstordh

8:50 pm on May 24, 2006 (gmt 0)

10+ Year Member



WHOAHOOO! Bingo!

thanks!