PDA

View Full Version : css help again different topic



ducktape
June 5th, 2001, 22:46
i now there is a way to make certain links or text a different color. i want to make the links in the sidebar a different color than the links on the rest of the page and i forgot how

Archis
June 6th, 2001, 02:09
You need to use a link class code.
The CSS area should look like this:
<style type="text/css">
a:link{text-decoration: whatever (possible: underline, underline overline, none, none overline), color:#whatever}

a:visited {text-decoration: whatever (possible: underline, underline overline, none, none overline), color:#whatever}

a:active {text-decoration: whatever (possible: underline, underline overline, none, none overline), color:#whatever}

a:hover {text-decoration: whatever (possible: underline, underline overline, none, none overline), color:#whatever}


Then for the different colored and decorated links:
a.scrollbar:link {text-decoration: whatever (possible: underline, underline overline, none, none overline), color:#whatever}

a.scrollbar:visited{text-decoration: whatever (possible: underline, underline overline, none, none overline), color:#whatever}

a.scrollbar:active {text-decoration: whatever (possible: underline, underline overline, none, none overline), color:#whatever}

a.scrollbar:hover {text-decoration: whatever (possible: underline, underline overline, none, none overline), color:#whatever}
</style>

Now here is what a link should look like.

<a href="http://yourdomain.com" class="scrollbar">

The Class is scrollbar, and it can be anything. Just put the class="scrollbar" into whatever link to give it different atributes than the other links. Hope I helped.

ducktape
June 6th, 2001, 23:00
i had that in my css and forgot to put it in my links silly me