Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="4/w3.css">
<body>
<div class="w3-container">
  <h1>The <strong>w3-display-hover</strong> Class</h1>  
  <div class="w3-display-container w3-hover-opacity" style="width:50%">
    <img src="img_avatar3.png" alt="Avatar" style="width:100%">
    <div class="w3-display-middle w3-display-hover w3-xlarge">
      <button class="w3-button w3-black">John Doe</button>
    </div>
  </div>
</div>
</body>
<!-- Mirrored from www.w3schools.com/w3css/tryit.asp?filename=tryw3css_display_hover_effects by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 16:50:35 GMT -->
</html>