title: How can I set the width and max-width of a CSS Grid Column?
body: <p>Is it possible to limit the width of a CSS grid column?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
    margin: 0;
    padding: 0;
  }
  .container {
      display: grid;
      grid-template-columns: minmax(17.5%, 250px) minmax(31.25%, 480px) auto;
      grid-template-rows: 100vh;
      grid-gap: 0;
  }
  .menu {
      padding-top: 32px;
      background: linear-gradient(135deg, #837DB5 0%, #364176 100%);
  }
  .list-view {
      background-color: #F5F5FC;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="menu"&gt;&lt;/div&gt;
    &lt;div class="list-view"&gt;&lt;/div&gt;
    &lt;div class="details"&gt;&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>In the example above it always uses 17.5% width for the menu because: </p>
  
  <blockquote>
    <p>"If max is smaller than min, then max is ignored and the function is
    treated as min."</p>
  </blockquote>
  
  <p>source: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns</a></p>
  
  <p>What I want is a menu that is 17.5% width with a max of 250px. Is that possible?</p>