Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
  <title>trapped</title>
</head>
<body>
  <style>
    .backdrop {
      position: fixed;
      top: 0; bottom: 0;
      left: 0; right: 0;
      z-index: 1;
      background-color: rgba(0, 0, 0, 0.5);
    }
    .overlay {
      position: fixed;
      z-index: 2;
    }
  </style>
  
  <div class="backdrop"></div>
  
  <!-- this creates a new stacking context -->
  <div style="transform: translateZ(0);">
    <div class="overlay">
      <button>click me!</button>
    </div>
  </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
valdrinkoshipro
0viewers