Jump to content

link colors


mind-owner

Recommended Posts

I know there is already many threads on this.HTML

<a href="x.html" class="red">x</a><a href="y.html" class="blue">y</a>

CSS

.red { color: red; }.blue { color: blue; }

Link to comment
Share on other sites

Hey guys what’s the code for html to change link color exemple : when you get over the link it changes colorthanks for the answer : mind-owner
This is the code newb!!!Paste this between your head tags . . . in the "href" you just type the reg. one (This is CSS)
<style type="text/css">a:link {color: blue}a:visited {color: red}a:hover {color: yellow}a:active {color: green}</style>

note that in the color hover, you can type by: RGB(0,0,0), hex-a-decimal(#FFFFFF), or name(blue)You need a lot of support noob!!!

Link to comment
Share on other sites

No, I think the person wan't two different types of links...You would use this code then...

<style type="text/css">a:link {color: blue}a:visited {color: red}a:hover {color: yellow}a:active {color: green}a.2:link {color: blue}a.2:visited {color: red}a.2:hover {color: yellow}a.2:active {color: green}</style>

Then you change the two to the different types of links that you wan't, then when you wan't to use the top one type a hyperlink as usuall and when you want the second one use this...<a class="2" href="mypage.html">

Link to comment
Share on other sites

  • 3 weeks later...
go here blind!!! hatch-a-a!
This is the code newb!!!Paste this between your head tags . . . in the "href" you just type the reg. one (This is CSS)
<style type="text/css">a:link {color: blue}a:visited {color: red}a:hover {color: yellow}a:active {color: green}</style>

note that in the color hover, you can type by: RGB(0,0,0), hex-a-decimal(#FFFFFF), or name(blue)You need a lot of support noob!!!

What kind of behaviour is that?! Be nice to new members. If I see anything like that from you again it's a temporary ban. To the other members, please report newbie-abuse if you see it.
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...