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="no-margin">
        <p>Boxes with no bottom margin </p>
        <div class="box"></div>
        <div class="box"></div>
      </div>
      <div class="with-margin">
        <p>Boxes with bottom margin </p>
        <div class="box"></div>
        <div class="box"></div>
      </div>
      
    </div>
  </body>
</html>
 
.container {
  display: flex;
  justify-content: space-around;
}
.box {
  width: 100px;
  height: 100px;
  border: 3px solid black;
}
.no-margin .box {
  background-color: red;
}
.with-margin .box {
  background-color: blue;
  
  /* margin applied */
  margin-bottom: 10px;
}
Output

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

Dismiss x