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>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
 body {
width:440px;
height:440px;
}
#con{
float:left;
background:#444;
margin:1px;
}
  #leftWrapper, rightWrapper {width:204px;float:left;}
</style>
</head>
<body>
  <div id="leftWrapper">
  <div id="con" style="width:100px;height:200px;">
        1
    </div>
    <div id="con" style="width:100px;height:200px;">
        2
    </div>
   <div id="con" style="width:100px;height:100px;">
        5
    </div>
    <div id="con" style="width:100px;height:100px;">
        6
    </div>
    <div id="con" style="width:100px;height:100px;">
        7
    </div>
    <div id="con" style="width:100px;height:100px;">
        8
    </div>
  </div>
  <div id="rightWrapper">
    <div id="con" style="width:100px;height:400px;">
        3
    </div>
    <div id="con" style="width:100px;height:400px;">
        4
    </div>
  </div>
</body>
</html>
 
if (document.getElementById('hello')) {
  document.getElementById('hello').innerHTML = 'Hello World - this was inserted using JavaScript';
}
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers