Jump to content

link colors


komquat

Recommended Posts

How can I control the link, and visited link color in html?ThanksAndy
Use a style sheet, make one by opening notepad and inserting this:
a:link { color:#0000ff; text-decoration:none; }a:visited { color:#0000ff; text-decoration:none; }a:hover { color:#00ff00; text-decoration:underline overline; }a.2:link { color:#0000ff; text-decoration:none; font-weight:bold; }a.2:visited { color:#0000ff; text-decoration:none; font-weight:bold; }a.2:hover { color:#00ff00; text-decoration:underline overline; font-weight:bold; }a.3:link { color:#000000; text-decoration:none; }a.3:visited { color:#000000; text-decoration:none; }a.3:hover { color:#00ff00; text-decoration:underline overline; }a.4:link { color:#ff0000; text-decoration:none; }a.4:visited { color:#ff0000; text-decoration:none; }a.4:hover { color:#00ff00; text-decoration:underline overline; }

Then save it as style sheet.css. Now in the head add this:<LINK rel="stylesheet" type="text/css" href="stylesheet.css">Then just set the colors you want, to use the first style type, use a normal link, to use a second type this:<a class="2" href="www.site.com">And if you want to use any of the other styles replace the 2 with the appropiate number.

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...