Jump to content

color text links


Guest jeadss

Recommended Posts

How to define the colors of the links ? For instance:<td style="font-weight: bold; font-family: verdana,arial,helvetica,sans-serif; text-align: center; background-color: rgb(211, 233, 255); color: rgb(51, 51, 153);"><font><font size="1"><a href="http://mysite.com/skincare.html" style="text-decoration: none;"><font size="1">Skin Care</font></a>should give a text link in dark blue (rgb(51,51,153) ,but instead it shows the standard blue rgb(0,0,255) ..!

Link to comment
Share on other sites

You're telling normal text inside the cell to be dark blue, while links will just keep their default color Give a color to the link itself instead.Like this:

<td style="font: bold 11px verdana, arial, helvetica, sans-serif; text-align: center; background-color: rgb(211, 233, 255);">   <a href="http://mysite.com/skincare.html" style="color: rgb(51, 51, 153); text-decoration: none;">Skin Care</a></td>

Also, the font element is deprecated and useless when using CSS. Using the example I just typed above should be fine. :) You should also save a lot of time by using non in-line CSS (inside <style /> or in an external style sheet).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...