HTML CSS examples for CSS Widget:Hover Image
Change an <img> elements by hovering an other <img>
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .voir-plus-mini-img:hover .voir-plus-mini-img-avant { display:none; } .voir-plus-mini-img:hover .voir-plus-img-avant { display:block; } .voir-plus-img-avant { display:none; } </style> <!-- w w w . ja va 2 s . co m--> </head> <body> <div class="voir-plus-container"> <div class="voir-plus-mini-img"> <img src="https://www.java2s.com/style/demo/InternetExplorer.png" class="voir-plus-mini-img-avant"> <img src="https://www.java2s.com/style/demo/Opera.png" class="voir-plus-img-avant"> </div> </div> </body> </html>