HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Links will not change colour
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
quartzy



Joined: 26 Dec 2007
Posts: 477

PostPosted: Mon Dec 29, 2008 11:39 pm     Links will not change colour Reply with quote

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

PostPosted: Mon Dec 29, 2008 11:55 pm     Reply with quote

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. Razz
quartzy



Joined: 26 Dec 2007
Posts: 477

PostPosted: Tue Dec 30, 2008 12:00 am     re Reply with quote

thanks that worked, how silly of the code to work like that.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3598
Location: Biloxi, MS

PostPosted: Thu Jul 02, 2009 3:52 pm     Reply with quote

Razz You're very welcome. Might loke into some pseudo-codes. Scroll down to "Pseudo-classes and Pseudo-elements".
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial