title: Why is css grid not working
body: <p>I have a html template like the following:</p>
  
  <pre><code>&lt;div&gt;
      &lt;div class="my-grid-container"  ng-repeat="cardData in summaryCardsCtrl.summaryDetails" &gt;
           &lt;div class="myClass"&gt;
               My custom div
           &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><em>I want the first div to span for two rows</em>, something like: </p>
  
  <p><a href="https://i.stack.imgur.com/AwXJp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AwXJp.png" alt="enter image description here"></a></p>
  
  <p>I am using <em>CSS3 GridBox like the following</em>:</p>
  
  <pre><code>.my-grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 10px;
    padding: 10px;
  }
  
  .my-grid-container &gt; div {
    text-align: center;
    padding: 20px 0;
    font-size: 30px;
    max-height: 70px;
  }
  
  .my-grid-container &gt; .myClass:first-child {
      grid-row: 1 / 3;
  }
  </code></pre>
  
  <p>But it did not work. The divs are all stacked on top of each other. 
  <strong>But I want the first the div to span 2 rows and the rest to occupy equal spaces.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/dAtHO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dAtHO.png" alt="enter image description here"></a></p>
  
  <p><strong>What am I doing wrong? Please help.</strong> </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Please see the codepen. <a href="https://codepen.io/chiranjib/pen/vjpOKE" rel="nofollow noreferrer">https://codepen.io/chiranjib/pen/vjpOKE</a></p>
  
  <p>Or, the codebase</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-js lang-js prettyprint-override"><code>var myApp = angular.module('myApp', []);
  
  myApp.controller('CardController', ['$scope', function($scope) {
    $scope.cardData = [
      {'name': 'My Div1', 'quantity': 3, 'price': 1.10},
      {'name': 'My Div2', 'quantity': 2, 'price': 1.99},
      {'name': 'My Div3', 'quantity': 1, 'price': 3.22},
      {'name': 'My Div4', 'quantity': 1, 'price': 3.74}
    ];
  }]);</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.my-grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 10px;
    padding: 10px;
  }
  
  .my-grid-container &gt; div {
    /*background-color: rgba(255, 255, 255, 0.8);*/
    background-color: aqua;
    text-align: center;
    padding: 20px 0;
    font-size: 30px;
    height: auto;
  }
  
  .my-grid-container &gt; .myClass:first-child {
      grid-row: 1 / 3;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html ng-app="myApp"&gt;
    &lt;head&gt;
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.9/angular.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"&gt;
    &lt;/head&gt;
    &lt;body ng-controller="CardController"&gt;
              &lt;div  class="my-grid-container" ng-repeat="cardData in cardData" &gt;
                 &lt;div class="myClass"&gt;
                  My Changed Divs
               &lt;/div&gt;
          &lt;/div&gt; 
    &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>