How To Fully Change Color Of Underlined Hyperlink?

6 replies
  • WEB DESIGN
  • |
I have underlined and bolded hyperlink which is all blue. The anchor text is "Sale Price". Now i want to change color of it to green and this is the code i use:

<a href="http://www.mydomain.com"><u><strong><font color="green">Sale Price</strong></font></u></a>

The problem is that it changes font, but it does not change underline itself. So "Sale Price" appears to be green, but its underline is blue.

How can i make that underline green as well? Or even, how can i make whole phrase green?

Thanks guys!
#change #color #fully #hyperlink #underlined
  • Profile picture of the author SpecStudio
    <a href="link"><u><font color="green"><strong>Sale Price</strong></font></u></a>

    you have to put the font tag in it's correct place...the order in which you place html tags has to be placed correctly.
    ex. <font><u><strong>Anchor Text</strong></u></font>
    {{ DiscussionBoard.errors[2417417].message }}
  • Profile picture of the author ckmcharles
    <a href="yourURL" style="text-decoration: underline; color: green; font-weight: bold;">Sale Price</a>
    {{ DiscussionBoard.errors[2417601].message }}
    • Profile picture of the author Karen Blundell
      Originally Posted by ckmcharles View Post

      <a href="yourURL" style="text-decoration: underline; color: green; font-weight: bold;">Sale Price</a>
      that's how I would do it
      Signature
      ---------------
      {{ DiscussionBoard.errors[2417911].message }}
  • Profile picture of the author ministerof
    Yes , styling it through CSS is best. Or you can do the style with A tag like ckmcharles mentioned.
    {{ DiscussionBoard.errors[2418308].message }}
  • Profile picture of the author ocsSEO01
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[2418383].message }}
    • Profile picture of the author Boris_yo
      Thanks a lot people!
      {{ DiscussionBoard.errors[2418777].message }}

Trending Topics