How do i change the color of a hyperlink with in-line CSS?
I don’t want this ugly baby blue link, I want it red, like my site logo. How am I supposed to change the color using inline CSS?
Observing members:
0
Composing members:
0
5 Answers
<a style=“color:#000000” href=“http://www.google.com” >Link Text</a>
For the color you can put the name (green, red, etc…) or use hexadecimal.
If you want to change the color of all the links on the page, put it in the <style> tag in the header. You can also change the colors depending on whether the link is visited, unvisited, active, or being hovered over. (I don’t know how to set those qualifications if you’re doing it on one specific link in a style attribute).
<style type=“text/css”>
a:link {color:#FF0000;} /* unvisited link */
a:visited {color:#00FF00;} /* visited link */
a:hover {color:#FF00FF;} /* mouse over link */
a:active {color:#0000FF;} /* selected link */
</style>
http://www.w3schools.com/css/css_link.asp
@MrItty Yea, when I learned how to use that when I first starting creating webpages, it was amazing.
@erichw1504 thanks that’s what I needed!
@MrItty good tips, good stuff but I’m only needing the one color on that one link, thanks though.
Response moderated
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.