I am struggling to figure out how to add padding to my image when hovering over it with Onmouseover
. I have tried multiple solutions but none seem to be working. Here is the original code:
<img src='/wp-content/uploads/2015/04/img-white.png' width="40" height="40" onmouseover="this.src='/wp-content/uploads/2015/04/img-green.png'; clicknovosti()" onmouseout="this.src='/wp-content/uploads/2015/04/img-white.png';">
To clarify, I am specifically trying to add padding to the green version of the image that appears on hover.
If anyone has any suggestions or can offer assistance, I would greatly appreciate it. Thank you!