title: Expanding to fill remaining space in a CSS Grid layout
body: <p>I want to use CSS grid and the following is a mock-up of the aim:<a href="https://i.stack.imgur.com/bhUqo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bhUqo.png" alt="enter image description here"></a></p>
  
  <p>I'm building an interface that should expand rightward to fill the browser screen; my current code causes column 2 of the outer grid to be as wide as the browser <em>in addition</em> to column 1; or maybe one of it's children is causing this and it's just expanding to accommodate. Either way, it's spilling off the page horizontally</p>
  
  <p>So the code:</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>#main {
    width: 100%;
    display: grid;
    grid-template-columns: 250px 100%;
    grid-template-rows: 100px 100%;
  }
  
  #col-2-outer {
    display: grid;
    grid-template-columns: 250px auto;
    grid-template-rows: 100%;
  }
  
  #row-1-inner {
    grid-column: span 2;
  }
  
  #col-2-inner table {
    width: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="main"&gt;
    &lt;div id="col-1-outer"&gt;&lt;/div&gt;
    &lt;div id="col-2-outer"&gt;
      &lt;div id="row-1-inner"&gt;&lt;/div&gt;
      &lt;div id="row-2-inner"&gt;
        &lt;div id="col-1-inner"&gt;&lt;/div&gt;
        &lt;div id="col-2-inner"&gt;
          &lt;table&gt;&lt;/table&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>FYI, for the time being I've forgone template areas until I get a handle on the basics (unless this somehow solves my problem but I gather this is strictly a code organization feature?). </p>