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="obj-wrapper">
    <div class="content">
      content
    </div>
  </div>
</body>
</html>
 
.obj-wrapper {
    width:50%;
  height:0;
  padding-bottom: 30%; /*acts as fluid height*/
  overflow:hidden;
  position:relative;
  background:grey;
}
.content {
    position:absolute;
  width:100%;
  height:100%;
  background:green;
}
Output

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

Dismiss x
public
Bin info
Varinderpro
0viewers