title: Creating a black and white grid HTML/CSS
body: <p>I am trying to create a 3 by 3 black and white grid. But instead only black square is showing. I have tried using Bootstrap.</p>
  
  <p>My one square of the grid should cover 3 grids space as per bootstrap grid system and I am using <code>padding-top:100%</code> to maintain the aspect ratio for the squares in the 3 by 3 grid.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
    margin: 0;
    color: pink;
  }
  
  .square {
    width: 100%;
    padding-top: 100%;
    background-color: black;
  }
  
  .square-w {
    width: 100%;
    padding-top: 100%;
    background-color: white;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" /&gt;
  
  &lt;div class="container-fluid"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md-3"&gt;
        &lt;div class="square"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class=" col-md-3 "&gt;
        &lt;div class="square-w"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class=" col-md-3 "&gt;
        &lt;div class="square"&gt;&lt;/div&gt;
      &lt;/div&gt;
  
    &lt;/div&gt;
    &lt;div class="row"&gt;
      &lt;div class=" col-md-3"&gt;
        &lt;div class="square-w"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-md-3 "&gt;
        &lt;div class="square"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-md-3"&gt;
        &lt;div class="square-w"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div class="row"&gt;
      &lt;div class="col-md-3 "&gt;
        &lt;div class="square"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-md-3 "&gt;
        &lt;div class="square-w"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-md-3 "&gt;
        &lt;div class="square"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>