Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
  <meta charset="utf-8" />
  <title>Page name</title>
  
    <style>
    
    div {
        background-color:hotpink;
        }
    
    p {
        background-color:orange;
        }
    
    .header {
    background-color: green;
    }
    
    .content {
    background-color: red;
        width: 70.72%; /* 680px */
        float:left;
        padding: 2.08%;
    }
    
    .ads {
    background-color: blue;
        width: 22.88%;
        float:right;
    }
    
    .footer {
    background-color: yellow;
        clear:both;
    }
    
    .header,
    .content,
    .ads {
        margin-bottom:20px; 
        }
    
    img {
        max-width:100%; 
        }
    
    .thumbnail {
    float: left;
    width: 31%; /* 213px */
    margin-right: 3.5%; /* 20px */
    margin-bottom: 13px;
    text-decoration: none;
    }
    .thumbnail:nth-of-type(3n+3) {
    margin-right: 0;
    }
    </style>
    
  </head>
  <body>
    <div class="header">
      <p>Header</p>
    </div>
    <div class="content">
      <a class="thumbnail" href="#">
    <img src="http://placehold.it/213x160" />
    <p>Strawberry Cheesecake</p>
      </a>
      <a class="thumbnail" href="#">
    <img src="http://placehold.it/213x160" />
    <p>Strawberry Cheesecake</p>
      </a>
       <a class="thumbnail" href="#">
    <img src="http://placehold.it/213x160" />
    <p>Strawberry Cheesecake</p>
      </a>
            <a class="thumbnail" href="#">
    <img src="http://placehold.it/213x160" />
    <p>Strawberry Cheesecake</p>
      </a>
      <a class="thumbnail" href="#">
    <img src="http://placehold.it/213x160" />
    <p>Strawberry Cheesecake</p>
      </a>
    </div>
    <div class="ads">
      <img src="http://placehold.it/220x400" />
    </div>
    <div class="footer">
      <p>Footer</p>
    </div>
  </body>
</html>
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers