title: How i can use min and max CSS functions to work with auto
body: <p>I want to be able to use the common <code>margin: auto</code> property, but with a minimum margin, such as:</p>
  <pre><code>margin: 0 max(auto, 16px);
  </code></pre>
  <p>This would center an element horizontally &amp; still enforce 16px of margin on either side when the viewport is too small. but not worked <code>min()</code> and <code>max()</code> CSS with <code>margin: auto;</code></p>
  <p>for example:
  I want to set style <code>margin-left: 30px;</code> and <code>margin-right: 30px;</code> for <code>.navbar__menu</code> when screen lower 500px. <strong>(without use @media query)</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-css lang-css prettyprint-override"><code>.navbar__menu {
    max-width: 500px;
    height: 50px;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    background: red;
    display: flex;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="navbar__menu"&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>