mind-owner Posted November 12, 2006 Share Posted November 12, 2006 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 Link to comment Share on other sites More sharing options...
vchris Posted November 12, 2006 Share Posted November 12, 2006 a:hover { color: red; } Link to comment Share on other sites More sharing options...
mind-owner Posted November 12, 2006 Author Share Posted November 12, 2006 ok lets say i got 10 links on a page and i need that 5 of them are "red" and 5 "blue" how do i do thatans also plz do a pretty big exemple :s Link to comment Share on other sites More sharing options...
vchris Posted November 12, 2006 Share Posted November 12, 2006 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 More sharing options...
vchris Posted November 12, 2006 Share Posted November 12, 2006 http://w3schools.invisionzone.com/index.php?showtopic=2904http://w3schools.invisionzone.com/index.php?showtopic=8475 Link to comment Share on other sites More sharing options...
tantachar07 Posted November 13, 2006 Share Posted November 13, 2006 go here blind!!! hatch-a-a! Link to comment Share on other sites More sharing options...
tantachar07 Posted November 18, 2006 Share Posted November 18, 2006 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-ownerThis 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 More sharing options...
holmedwa04 Posted November 18, 2006 Share Posted November 18, 2006 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 More sharing options...
Jonas Posted December 4, 2006 Share Posted December 4, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now