Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
</head>
<body>
  <div id="outer" style="height:500px; width:500px; background-color:pink;">&nbsp;</div>
  <div id="inner" style="height:200px; width: 200px; background-color:black; position:absolute; top:150px; left:150px;">
  
    <div id="outer" style="height:100px; width:100px; background-color:pink; position:relative; top:50px; left:50px;">&nbsp;</div>
  
  
  </div>
</body>
</html>
 
$(document).ready(function() {
  $("div").mouseover(function(e) {
    e.stopPropagation();
    $(this).css("outline", "solid 3px red");
    
  });
  
  $("div").mouseout(function(e) {
    e.stopPropagation();
    $(this).css("outline", "none");
    
  });
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers