ashrobbins87 Posted March 10, 2009 Share Posted March 10, 2009 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 https://forums.phpfreaks.com/topic/148804-solved-different-link-colours-from-one-css-file/ Share on other sites More sharing options...
ashrobbins87 Posted March 10, 2009 Author Share Posted March 10, 2009 turns out i was being a spanner and using calendar a:link instaed of a:link.calendar!! Link to comment https://forums.phpfreaks.com/topic/148804-solved-different-link-colours-from-one-css-file/#findComment-781394 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.