Click to See Complete Forum and Search --> : Having <SPAN> trouble... help?


pathfinder74
12-01-2005, 01:13 PM
I must not be doing something right but I thought you could make a class or ID, set the attributes (ie font family, color, etc) and apply it to specific blocks of text you want to look that way by using the <span> tag.

Can this be done with the hyperlink attributes within a class? Like

.link1 {
a:link, a:active {color: #818181;}
a:visited {color: #818181;}
a:hover {color: #FFFFFF;
background-color: #818181; }
}

.link2 {
a:link, a:active {color: #000000;}
a:visited {color: #000000;}
a:hover {color: #FFFFFF;
background-color: #818181; }
}

pathfinder74
12-01-2005, 01:29 PM
never mind... found it again... every time I ask I find it on W3

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