Custom Search
Use Custom Search above and/or Labels in right sidebar to search for topics

Thursday, January 04, 2007

How to change the color of your hyperlink

Someone commented in blog Blogger for Dummies and I went to his site Dogs Puppies Training and Care by Kevin the Collie. I noticed in his header a link which was in dark blue which merged into the dark green background and thus became almost invisible. I don't know if the color was controlled by the CSS (Cascading Style Sheet) or not, but in any case, if you want a link to be of a certain color, you should write the link in the following way (assuming you want it to be in red): <a href="URL><span style="color:red;">description</span></a>.

Update: Someone asked whether it is possible to post things other than hyperlinks in color. Sure. Just enclose the text with the <span style="color:red;"> and </span> tags. For example you want these text to be in green, just put <span style="color:red;"> in front of "these" and </span> after "green"

  NEWER POST    HOME  OLDER POST

3 comments:

Anonymous said...

Hi Peter

Thanks very much for your help with the link on my blog. It had been nagging away at me for ages, but I fixed it in less than a minute after you told me how!
Kevin the Collie

Anonymous said...

Thanks. Is there any way to make normal text in color? It's a part of my template, not an individual post (the part at the top of my blog that says "If you like what you say, post a comment). Thanks in advance!

Peter Chen said...

Sure. I can't answer in the comments section as many HTML characters are not allowed. I have answered your query in an update in this post.

Peter aka Enviroman
Enviroman Says