Change image-border on mouseover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Change image-border on mouseover

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
IMG.HoverBorder {
   border:6px solid Chartreuse;
}

IMG.HoverBorder:hover {
   border:6px solid yellow;
}
</style> <!--   ww  w. jav  a2  s .c o  m-->
 </head> 
 <body> 
  <img class="HoverBorder" src="https://www.java2s.com/style/demo/Google-Chrome.png">  
 </body>
</html>

Related Tutorials