Discussion board
CSS Links
By Rajagopalan Nambiar
I am taking up the assignment on CSS links. I have a question: How do i incorporate two different link styles in the same file? (Eg: if i have two different links that i want to style differently, how do i define their styles and how do i point to them)
Reply
Post   Reset
Sanjay S Nair replied to Rajagopalan Nambiar Sunday, February 07, 2010
You could give two styles two different names

<!-- Style -->
<style type="text/css">
.red{color:red;}
.blue{color:blue;}
</style>

<!-- HTML -->
<a href=# class=red>This is red link</a>
<a href=# class=blue>This is blue link</a>