Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Css


GWJ - 12:41 pm on Jan 5, 2001 (gmt 0)


Thanks Gmiller, I was really bummed out over this as I had spent a good bit of time studying CSS in the last week (I knew nothing about it last week). The code is as follows...

<html>
<head>
<title>CSS Test</title>
<!---This shows examples of different style hyper link attributes--->
<style type="text/css">
a:link.col {color: red; text-decoration: none; font-weight: bold}
a:active.col {color: green; text-decoration: none; font-weight: bold}
a:visited.col {color: yellow; text-decoration: none; font-weight: bold}
a:hover.col {color: lime; background-color: black; font-weight: bolder}

a:link.col2 {color: green; text-decoration: none; font-weight: bold}
a:active.col2 {color: blue; text-decoration: none; font-weight: bold}
a:visited.col2 {color: purple; text-decoration: none; font-weight: bold}
a:hover.col2 {color: red; background-color: silver; font-weight: bolder}

a:link.col3 {color: fuchsia; text-decoration: none; font-weight: bold}
a:active.col3 {color: red; text-decoration: none; font-weight: bold}
a:visited.col3 {color: blue; text-decoration: none; font-weight: bold}
a:hover.col3 {color: orange; background-color: brown; font-weight: bolder}

</style>
</head>
<body>
<a href="index.htm" class="col">Home</a>
<br>
<a href="index.htm" class="col2">Home</a>
<br>
<a href="index.htm" class="col3">Home</a>
<br>
</body>
</html>

Thanks again,

Brian

P.S.- CSS seems to be some pretty slick stuff :). The sleeper has awakened.


Thread source:: http://www.webmasterworld.com/css/5.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com