title: Background gradient as two tone solid color - one color width in px
body: <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>div {
    height: 50px;
    width: 100%;
    background-image: linear-gradient(to right, white 50%, red 46px);
  }
  
  body {
    padding: 20px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I'm trying to use linear gradients as a two tone solid color background in a <code>div</code>.</p>
  
  <p>The <code>div</code> can be any width, and I would like one of the colors to have a specified width in px - and the other color to fill up whatever is left of the total width. Is that possible as all?</p>
  
  <p>Like:</p>
  
  <pre><code>div {
    background-image: linear-gradient(to right, white auto, red 46px);
  }
  </code></pre>