• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

rollover links

Is it possible to have 2 links of 2 different colours to change to 2 different colours when rolled over on the same page?
0
legscrazy
Asked:
legscrazy
  • 2
1 Solution
 
klykkenCommented:
legscracy,
yes it is possible.

You can specify link, visited, hover and active for different links this way:

<style type="text/css">
<!--
.one a:link {color: #000000}
.one a:visited {color: #000000}
.one a:hover {color: #CCCCCC}
.one a:active {color: #000000}

.two a:link {color: #CC0066}
.two a:visited {color: #CC0066}
.two a:hover {color: #FFCCCC}
.two a:active {color: #CC0066}
-->
</style>

<div class="one"><a href="link1.html">Link One</a></div>
<div class="two"><a href="link2.html">Link Two</a></div>
--
klykken
0
 
legscrazyAuthor Commented:
Thanks very much!!
0
 
klykkenCommented:
Glad to be of help,
and thanx for the A! :)
--
klykken
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now