Jump to content

[SOLVED] Different Link Colours from one CSS file


ashrobbins87

Recommended Posts

Hi guys

 

I've had a search on the forum and on several CSS websites to try to solve this little query but they all tell me to do something that doesnt work. Basically I have a page which has a toolbar and a php calendar and I want the links on the toolbar to be white and the links on the calendar to be black. In my css file I have...

 

a:link {text-decoration: none; color: white}

a:visited {text-decoration: none; color: white}

a:active {text-decoration:none; color: white}

a.speciallink {text-decoration: none; color: white}

 

calendar a:link {text-decoration:none; color:black}

calendar a:visited {text-decoration:none; color:black}

calendar a:active {text-decoration:none; color:black}

calendar a.speciallink {text-decoration:none; color:black}

 

...which is what I get told to do by all these websites. I then use the normal <a href> tags for the white links and get told to use <a class="calendar" href=""> to tell it to make the links black. However all the links on my page just come out white.

 

I know this is a really basic problem but I'd really appreciate the help!!

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.