Trying to get white color font but not happening. Where is the coding problem? <tr> <td height="22" align="right" bgcolor="#F6AD8A"><font color="#FFFFFF" size="1"face="Verdana, Arial, Helvetica, sans-serif"><a href="gift_box.php">Free Gift Box</a> </font></td> </tr>
The text is white however because you have made it a link this is overtaken by the active link code (built-in to browsers) so this will default it to blue. The best way to set fonts, color is to uss CSS for the styling, then you can set default colours and things.
Yep you need to use a css sheet as that will then disable the default link colour. Here is mine as an example hope it helps somewhat body { background-color: transparent; font-family: comic sans, sans-serif; font-size: 9.5pt; color: #0F5B8B ; scrollbar-3d-light-color:#558AAF; scrollbar-arrow-color:#558AAF; scrollbar-base-color:#558AAF; scrollbar-dark-shadow-color:#3E6882; scrollbar-face-color:#537393; scrollbar-highlight-color:#558AAF; scrollbar-track-color:#537393; scrollbar-shadow-color:#3E6882; } <!-- a:link { color: 0F5B8B; text-decoration: none; } a:visited { color: 0F5B8B; text-decoration: none; a:hover { color: 8BB7ED; text-decoration: none; }
Think this works without css. <tr> <td height="22" align="right" bgcolor="#F6AD8A"><a href="gift_box.php"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Free Gift Box</font></a> </td> </tr>
put all your <font> elements within the <a> tag and it will work well. Link property differs from normal text. <font> property will not affect them.
Why are you using obsolete HTML code when you could be using something that's not only a million times better but is also that much easier to maintain?
Thanks twistedspikes . Yes, it worked but font size came size 3 instead of size 1. Don't understand why?