title: width: inherit minus (or plus)
body: <p>Is there any method to inherit the width from other class but with <strong>minus (or plus) px</strong> size ?</p>
  <p>This is not proper <code>css</code> but get the idea:</p>
  <pre><code>width: inherit - 20px ;
  </code></pre>
  <p>Since I'm using inherit width and <code>10px</code> padding it goes outside the box for <code>+ 20px</code>;</p>
  <p>Live example:</p>
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.cb {
      width: 340px;
      height: 331px;
      border: 1px solid #ccc;
      padding: 0;
      background: #ccc;
      color: #fff;
      position: fixed;
      bottom: 0;
      right: 41px;
  }
  
  .cb .x {
      width: inherit;
      height: 100px;
      border: 0;
      padding: 10px;
      background: #781111;
      overflow-y: auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="cb"&gt;
          
      &lt;div class="cb x"&gt;
      text&lt;br&gt;
      text&lt;br&gt;
      text&lt;br&gt;
      text&lt;br&gt;
      text&lt;br&gt;
      text&lt;br&gt;
      text&lt;br&gt;
      text&lt;br&gt;                
     &lt;/div&gt;
          
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>