Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  
  <div class="nav">
  <p>Nav Bar</p>
  <p>(scroll down)</p>
</div>
<div class="content">
  <div>margin-top: 20em</div>
  <div>height: 20</div>
  <div>Green div over/under-shoots nav bar depending on window size and zoom</div>
  <div>Trying to make the green box snap to the nav bar regardless of window size or zoom </div>
</div>
  
  
  
  
  
  
  
  
  
  
  
</body>
</html>
Output

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

Dismiss x
public
Bin info
itsgoingdownpro
0viewers