title: How do you make links/href in CSS grid appear inline versus block?
body: <p>When I insert a link into a div container using CSS grid, it treats the link as a block element vs. inline. Even when I try to force it to be inline, it still treats it as block. How can I make a link display inline?</p>
  
  <p>Thanks for your help.</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>#container {
    display: grid;
    grid-template-rows: 100px 100px;
    grid-template-columns: 180px 180px
  }
  
  .item {
    display: grid;
    border: 1px solid #ccc;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="container"&gt;
    &lt;div class="item"&gt;
      Text with a &lt;a href="#"&gt;link&lt;/a&gt; in it. This is text without a link in it.
    &lt;/div&gt;
  
    &lt;div class="item"&gt;
      Text with a &lt;a href="#" style="display: inline;"&gt;link&lt;/a&gt; in it. This is text without a link in it.
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is what the above code will render as:
  <a href="https://i.stack.imgur.com/HwCAQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HwCAQ.png" alt="Output"></a></p>