Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
    <title>Create</title>
<style type="text/css" rel="stylesheet">
.red-element{
                width:300px;
                height:300px;
                background-color:red;
}
.yellow-element{
         width:300px;
                height:300px;
                background-color:yellow;
}
.green-element{
             width:300px;
                height:300px;
                background-color:green;
}
.main-column{
    float:left;
}
.sidebar-column{
    float:right;
}
  
  /*please notice bottom*/
@media only screen and (max-width: 630px) {
     .green-element{
       
        margin-top:-200%;
        }
    .yellow-element{
        margin-top:100%;
    }
}
 /*please notice top*/
</style>
</head>
<body >
<div class="two-columns">
  <div class="main-column">
    <div class="red-element"></div>
    <div class="yellow-element"></div>
  </div>
  <div class="sidebar-column">
    <div class="green-element"></div>
  </div>
</div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers