Click to See Complete Forum and Search --> : question on links with css


gjack72
11-21-2005, 01:50 PM
I have a stylesheet set up where I want the links on all my pages to do the same.
I am having problems doing this.
Do I need an ID="" for each page? or can my css sheet do this for me.
Thanks,

GJ

/* ho8 style sheet */

body {background-image: url(images/bkgrndMed.gif); font-family: sans-serif;
color: rgb(153,0,0)}

a:link {color: blue; text-decoration: none}
a:visited {color: rgb(153,0,0); text-decoration: none}
a:hover {color: rgb(153,0,0); text-decoration: underlined}
a:active {text-decoration: none}

h1,h2,h3,h4,h5,h6 {color: #000099}

LiLcRaZyFuZzY
11-21-2005, 01:52 PM
if you only have one sort of links then do nothing more, but if you have different sorts of links, you can use the class attribute on the desired anchor tag

gjack72
11-21-2005, 02:10 PM
Thanks,
I had 2 errors that I found and that is why it was not working.

GJ