Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<div class='container'>
    <div class='main'></div>
    <div class='left'></div>
    <div class='right'></div>
</div>
</body>
</html>
 
.container{ 
positoion: relative;
  margin: 0;
  padding: 0;
}
.main {
    height: 100px;
    background-color: red;
    margin: 0 100px;
  padding: 0;
}
.left,
.right {
    position: absolute;
    top: 0;
  width: 100px;
  height: 100px;
    background-color: green;
} 
.left {
    left: 0;
    background-color: yellow;
}
.right {
    right: 0;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers