boney alex Posted April 20, 2007 Share Posted April 20, 2007 I have a PHP calendar with each day as a link that the user can click on. To keep in line with the colours of my site I have made the links (dates) YELLOW and the background red. Below the calendar in the same page, I have a table which is populated by records from a table in my database. Each record has a reservationID which I have made a link aswell. Is there anyway to make these links in the table standard blue but keep my dates in yellow? I have made the dates yellow by using: <body bgcolor="#FFFFFF" link="#FFFF00" vlink="#FFFF00"> This is the line of code which shows the reservationID link: <td> <center><font face=Arial size=2><a href=\"reservationinfo.php?id=$reservationID\">$reservationID</a></font></center> Any ideas would be much appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/47821-solved-different-colour-links-on-the-same-page/ Share on other sites More sharing options...
obsidian Posted April 20, 2007 Share Posted April 20, 2007 The answer is CSS! Create two classes with the two color schemes you want, and simply apply those classes to the links in the locations you wish them to be carried out. Quote Link to comment https://forums.phpfreaks.com/topic/47821-solved-different-colour-links-on-the-same-page/#findComment-233674 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.