Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
  <div class="container">
  
    <div class="box1"></div>
  
    <div class="box2"></div>
  
    <div class="box3"></div>
  
    <div class="box4"></div>
  </div>
</body>
</html>
 
body {
    margin: 20px;
    border: solid 1px black;
}
.container {
    position: relative;
    margin: 30px;
    border: solid 1px orange;
    padding: 10px;
}
.box1 {
    width: 100px;
    height: 100px;
    background: blue;
}
.box2 {
    width: 100px;
    height: 100px;
    background: green;
    border: yellow solid;
    position: absolute;
    left: 40px;
    top:  40px;
}
.box3 {
    width: 100px;
    height: 100px;
    background: red;
}
Output

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

Dismiss x
public
Bin info
ImpressiveWebspro
0viewers