PDA

View Full Version : how do you change colour of link


blackman
07-28-2003, 02:41 PM
Hello people how can i change the link colour on my website. My site is a dark blue colour and the links are blue which makes it hard to see.

Here is a link of the site to show you what im talking about, its in the community sections

www.lucians-unite.com

Thanking you all in advance

MotherNatrsSon
07-28-2003, 03:23 PM
In CSS like this:

<style type="text/css">
a:link {color: #FF0000}
a:visited {color: #00FF00}
a:hover {color: #FF00FF}
a:active {color: #0000FF}
</style>
You need to put in the same place as your border style

http://www.w3schools.com/css/tryit.asp?filename=trycss_link


http://www.w3schools.com/css/default.asp
MNS

blackman
07-28-2003, 03:39 PM
thank you

ronaldb66
07-28-2003, 03:56 PM
You can combine the two style declarations (link colors and body border) into one, better still: move your styles to an external stylesheet so you can reuse them on every page of your site; saves bandwidth, speeds up downloading and enables you to change the styles without touching any of the pages.

While you're at it: you can set the background color using styles, too (same advantages as above), and consider using styles for setting fonts as well; that'll save you a whole lot of lengthy "font" tags.
The link MotherNatrsSon mentioned offers a very good CSS tutorial.

MotherNatrsSon
07-28-2003, 04:26 PM
Originally posted by blackman
thank you

Your welcome.

You do know you can change the color by changing the number to any color you want?

MNS