title: How can I make CSS grid items have auto height using tailwind?
body: <p>Let's suppose I have this 2 by 2 grid layout made with the help of <strong><a href="https://tailwindcss.com/" rel="noreferrer">Tailwindcss</a></strong>:</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-html lang-html prettyprint-override"><code>&lt;link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/1.4.6/tailwind.min.css" rel="stylesheet"/&gt;
  &lt;div class="inline-grid grid-cols-2 grid-rows-2"&gt;
    &lt;div class="px-1"&gt;Full name:&lt;/div&gt;
    &lt;div class="px-1"&gt;Favoutite fruits:&lt;/div&gt;
    &lt;div class="px-1"&gt;John Doe&lt;/div&gt;
    &lt;div class="px-1"&gt;
      &lt;ul&gt;
        &lt;li&gt;Apples&lt;/li&gt;
        &lt;li&gt;Oranges&lt;/li&gt;
        &lt;li&gt;Bananas&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The problem with the above layout is that the rows are equal in height or, in other words, all the grid items are forced to have <em>the height of the tallest of them</em>.</p>
  
  <p>The items on the first row must have the height required by only a single row of text.</p>
  
  <p>How do I achieve that?</p>