Click to See Complete Forum and Search --> : mouseover and css


IxxI
04-26-2003, 12:29 PM
Wan't sure whether this was more javascript or css, so I posted here. How can I make it so that when I put my mouse over a link it underlines it other than by using

A:hover {text-decoration: underline;}

as I only want it to happen to two links (both in the same div if that helps).
Thanks,

IxxI

khalidali63
04-26-2003, 12:38 PM
you can probably do something like this. define CSS


<style type="text/css">
.textdecorationnone{
text-decoration:none;
}
A:hover{
text-decoration:underline;
}


and html part


<a href="" class="textdecorationnone">Link 1</a><br/>
<a href="" >Link 2</a><br/>
<a href="" class="textdecorationnone">Link 3</a><br/>
<a href="" >Link 4</a><br/>

,

Ofcourse this thread should have been in CSS section.

:D

IxxI
04-26-2003, 12:50 PM
Thank you both, most helpful and efficient, as usual.

IxxI