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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.