title: How to auto adjust dt dd width in css?
body: <p>I use dt and dd to create a paper form.</p>
  <p>dt width should match the word and dl should match remain space</p>
  <p>Now I adjust each line manually, how can I use css to auto do this?</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>div {
    width: 200px;
  }
  
  
  /* dl dt dd same line */
  
  dl {
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0
  }
  
  dt {
    float: left;
    /* adjust the width; make sure the total of both is 100% */
    padding: 0;
  }
  
  dd {
    float: left;
    /* adjust the width; make sure the total of both is 100% */
    margin: 0;
    box-sizing: border-box;
    border-bottom: 1px solid black;
  }
  
  dl dt:nth-of-type(1) {
    width: 36%;
  }
  
  dl dd:nth-of-type(1) {
    width: 64%;
  }
  
  dl dt:nth-of-type(2) {
    width: 26%;
  }
  
  dl dd:nth-of-type(2) {
    width: 74%;
  }
  
  dl dt:nth-of-type(3) {
    width: 14%;
  }
  
  dl dd:nth-of-type(3) {
    width: 86%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;dl&gt;
      &lt;dt&gt;aaabbbccc:&lt;/dt&gt;
      &lt;dd&gt;&amp;nbsp;&lt;/dd&gt;
      &lt;dt&gt;aaabbb:&lt;/dt&gt;
      &lt;dd&gt;&amp;nbsp;&lt;/dd&gt;
      &lt;dt&gt;aaa:&lt;/dt&gt;
      &lt;dd&gt;&amp;nbsp;&lt;/dd&gt;
    &lt;/dl&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>