 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
quartzy
Joined: 26 Dec 2007 Posts: 477
|
Posted: Mon Dec 29, 2008 11:39 pm Links will not change colour |
|
|
|
I have this code
| Code: |
<p class="dark"><span class="large">A</span>ssistance from these partnerships: enables us to create the next
generation of coaches, and sports people, and for them to move on and meet the requirements for
<a class="develop"
href="http://www.lewisham.gov.uk/JobsAndCareers/EmploymentAdviceTraining/SportsEmployment.htm">employment</a> and <a class="develop" href="http://www.valewisham.org.uk/">voluntary opportunities</a></p>
<h2 class="blue"><br /><a href="about.html">Our Values</a><br /><br /></h2><br /><br />
|
and then I have this CSS
| Code: |
a.develop :link{color:#FFF;}
a.develop :visited {color:#CCC;}
|
I only want to change the link colours for this section, yet it does not seem to work, does anyone know why? Have I made any errors? |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 3598 Location: Biloxi, MS
|
Posted: Mon Dec 29, 2008 11:55 pm |
|
|
|
Try this instead:
| Code: |
a:link.develop {color:#fff;}
a:visited.develop {color:#ccc;} |
Same for the hover and active links. Hope your background color isn't white.  |
|
quartzy
Joined: 26 Dec 2007 Posts: 477
|
Posted: Tue Dec 30, 2008 12:00 am re |
|
|
|
| thanks that worked, how silly of the code to work like that. |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 3598 Location: Biloxi, MS
|
Posted: Thu Jul 02, 2009 3:52 pm |
|
|
|
You're very welcome. Might loke into some pseudo-codes. Scroll down to "Pseudo-classes and Pseudo-elements". |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|