title: CSS: Dynamic height via textarea
body: <p>How do I make the container of modal adapt in size when textarea is dragged/resized? This is by the way a modal. Currently, when I resize the textarea, it overflows from the container.</p>
  
  <p>Below are my CSS and HTML:</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>.dialog-box {
      position: absolute;
      width: 100%;
      height: 100%;
      top:0;
      left:0;
      z-index: 1000;
  }
  .dimmer {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      top:0;
      left:0;
      z-index: -1;
  }
  .container{
      background-color: #fff;
      width: 600px;
      height: 460px;
      position: absolute;
      border-radius: 5px;
      top:0;
      right:0;
      bottom:0;
      left:0;
      margin: auto;
      border: 1px solid #ebebeb;
      padding: 20px;
      align-items: center;
      z-index: 1;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div  class="dialog-box" *ngIf="showDialogBox"&gt;
    &lt;div class="dimmer" (click)="hide()"&gt;&lt;/div&gt;
    &lt;div class="container" &gt;
      &lt;h3&gt;
          &lt;ng-content&gt;&lt;/ng-content&gt;
      &lt;/h3&gt;
      &lt;form class="ui form" [formGroup]="dialogForm" novalidate&gt;
          &lt;div class="field required"&gt;
              &lt;label&gt;Name&lt;/label&gt;
              &lt;input type="text" class="name" formControlName="name" placeholder="Enter Name..." maxlength="100" required/&gt;
          &lt;/div&gt;
          &lt;div class="field"&gt;
              &lt;label&gt;Remarks&lt;/label&gt;
              &lt;textarea class="remark" formControlName="remark" placeholder="Enter Remarks..." maxlength="1000"&gt;&lt;/textarea&gt;
          &lt;/div&gt;
      &lt;/form&gt;
      &lt;ng-content select="[action]"&gt;&lt;/ng-content&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>