# How to apply border on image rollover using css?

**URL:** <https://forum.kirupa.com/t/how-to-apply-border-on-image-rollover-using-css/312236>\
**Category:** flash\
**Created:** [July 28, 2010, 7:44pm UTC](https://forum.kirupa.com/t/how-to-apply-border-on-image-rollover-using-css/312236 "2010-07-28T19:44:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zenor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zenor/32/3634_2.png) [@Zenor](https://forum.kirupa.com/u/Zenor)\
**Post date:** [July 28, 2010, 7:44pm UTC](https://forum.kirupa.com/t/how-to-apply-border-on-image-rollover-using-css/312236/1 "2010-07-28T19:44:58Z")

</div>

Hello,

I have a dynamic textfield that is html formatted and loads text from an XML file. On the XML file I have the following image that contains a link:

```auto
<a href="link here"><img src="image.png"/></a>

```

How can I add border on image hover using CSS?  
I tried several things but none worked.  
Is this even possible?
