Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 3 Years, 1 Week ago add different color for each link
#1
Solved: 3 Years, 1 Week ago
This user has been denied support. This user has been denied support.
Hi,



How Can I Add Different color for Each links i got this code but where should i insert

<!DOCTYPE html>
<html>
<head>
<style>
a.one:link {color:#ff0000;}
a.one:visited {color:#0000ff;}
a.one:hover {color:#ffcc00;}

a.two:link {color:#ff0000;}
a.two:visited {color:#0000ff;}
a.two:hover {font-size:150%;}

a.three:link {color:#ff0000;}
a.three:visited {color:#0000ff;}
a.three:hover {background:#66ff66;}

a.four:link {color:#ff0000;}
a.four:visited {color:#0000ff;}
a.four:hover {font-family:monospace;}

a.five:link {color:#ff0000;text-decoration:none;}
a.five:visited {color:#0000ff;text-decoration:none;}
a.five:hover {text-decoration:underline;}
</style>
</head>
<body>

<p>Mouse over the links and watch them change layout:</p>

<p><b><a class="one" href="default.asp" target="_blank">This link changes color</a></b></p>
<p><b><a class="two" href="default.asp" target="_blank">This link changes font-size</a></b></p>
<p><b><a class="three" href="default.asp" target="_blank">This link changes background-color</a></b></p>
<p><b><a class="four" href="default.asp" target="_blank">This link changes font-family</a></b></p>
<p><b><a class="five" href="default.asp" target="_blank">This link changes text-decoration</a></b></p>

</body>
</html>

Reply
#2
Solved: 3 Years, 1 Week ago
which links exactly you want to change color & what is your forum url ..
Reply
#3
Solved: 3 Years, 1 Week ago
This user has been denied support. This user has been denied support.
Forum and Posts In Multi Color and Header Text also in different colors how can modify this
Reply
#4
Solved: 3 Years, 1 Week ago
Use there existing class and define link attribute to them.
For example .postbit a:link {color:#000000; }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)