1 reply [Last post]
Anonymous
Anonymous's picture
Guru
calgary,alberta
calgary,alberta

<style>
phover {border=1}
</style>
<p><img src="pic01.jpg"></p>

Som ni kanske ser vill jag har en ram runt min bild bara när man håller musen över. Är det möjligt? Om det är det så kan ni väl mejla mig på
Tack // Oscar

As you might see I want it to be a border around my picture only on mouse-over. Is this posible? If it is please mail me the code on
Thanks // Oscar

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 days 22 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

p:hover {border=1}

Hi Oscar,
the border declaration in the style should be p:hover {border:1px solid blue;} Note no "=".
I think some browsers have problems with hover on anything but links, so you could try

A.mylink{border:0;}
A.mylink:hover{border:1px solid blue;}

<a href="#" class="mylink"><img src="pic01.jpg" border="0"></a>