title: Flexbox Layout with Embedded Scrolling Divs
body: <p>I'm trying to create this layout with flexbox:
  <a href="https://i.stack.imgur.com/kqIVu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kqIVu.png" alt="enter image description here" /></a></p>
  <p>I can't get the <code>Left</code> box to scroll with <code>overflow-y:scroll</code>. Instead, the whole viewport scrolls.</p>
  <p>I put all the code <a href="https://codepen.io/cliftonlabrum/pen/bGpKzbO" rel="nofollow noreferrer">in a CodePen here</a>.</p>
  <p>Here's the basic structure:</p>
  <pre><code>&lt;div id=&quot;wrap&quot;&gt;
    &lt;div id=&quot;attic&quot;&gt;
      &lt;h4 contenteditable=&quot;true&quot; placeholder=&quot;Task title...&quot;&gt;Attic (this is an editable title so the text can wrap and this div can grow in height)&lt;/h4&gt;
    &lt;/div&gt;
    &lt;div id=&quot;split&quot;&gt;
  
      &lt;!-- Left Side --&gt;
      &lt;div id=&quot;main&quot;&gt;
        &lt;div id=&quot;notes&quot;&gt;
          &lt;p&gt;Notes - this pane should scroll.&lt;/p&gt;
          &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;
          &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;
          &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;
          &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;
        &lt;/div&gt;
        &lt;div id=&quot;basement&quot;&gt;
          Basement
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;!-- Right Side --&gt;
      &lt;div id=&quot;side&quot;&gt;
        Side
      &lt;/div&gt;
   
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>And here are my style definitions:</p>
  <pre><code>#wrap{
    display:flex;
    flex-direction: column;
    height:100vh;
  }
  #attic{
    min-height:60px;
    background:#F2F2F2;
  }
  #split{
    flex-grow:1;
    display:flex;
  }
  #main{
    display:flex;
    background:#CCF5FF;
    flex-direction: column;
  }
  #notes{
    background:#E2F9D4;
    min-width:440px;
    overflow-y:scroll;
  }
  #basement{
    height:50px;
    background:#EEE;
  }
  #side{
    background:#B3F0DD;
    min-width:300px;
  }
  </code></pre>
  <p>Can anyone see what I'm doing wrong?</p>