Forum : CSS Links
Brief description  about Online courses   join in Online courses
View Rajagopalan  Nambiar 's Profile

CSS Links

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)
Asked by Rajagopalan Nambiar | Feb 7, 2010 |  Reply now
Replies (2)
View rajagopalan nambiar 's Profile
Thnx Sanjay.. I think i was confused between Styling links and Creating Links.. :) will submit the assignment as soon as the link is activated.
Feb 7, 2010
View sanjay s nair 's Profile
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>
Feb 7, 2010