title: Styling dl and dt with CSS to mimic table-like presentation
body: <p>I have the following issues using CSS to style some <code>dl</code> and <code>dt</code> elements.  I prefer always to use very basic CSS that is compatible with IE6/IE7 and modern browsers.  I am trying to get an effect, that to me should be rather simple to achieve.</p>
  
  <p>Here's a stripped down version of the initial source code I am working with, to try and work on just this issue:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Test&lt;/title&gt;
  
          &lt;style type="text/css"&gt;
  
          .terms dl {
              float: left;
              padding-left: 0px;  
          }
  
          .terms dt, .terms dd {
              text-align: center;
              margin: 0px;
              float: left;
          }
  
          .terms dt {
  
              border: solid blue 1px;
              clear: left;    
          }
  
          .terms dd {
              border: solid red 1px;
              margin-right: 40px;
              margin-left: 40px;
          }
  
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="terms"&gt;
              &lt;h1&gt;Terms&lt;/h1&gt;
              &lt;dl&gt;
                  &lt;dt&gt;Term 1:&lt;/dt&gt;
                  &lt;dd&gt;Very Long definition for this term here&lt;/dd&gt;
  
                  &lt;dt&gt;Term 2:&lt;/dt&gt;
                  &lt;dd&gt;Definition for term&lt;/dd&gt;
  
                  &lt;dt&gt;Term 3 with longer term title:&lt;/dt&gt;
                  &lt;dd&gt;Definition for term&lt;/dd&gt;
  
                  &lt;dt&gt;Term 4:&lt;/dt&gt;
                  &lt;dd&gt;Definition for term&lt;/dd&gt;
  
                  &lt;dt&gt;Term 5:&lt;/dt&gt;
                  &lt;dd&gt;Definition for term&lt;/dd&gt;
  
                  &lt;dt&gt;Term 6:&lt;/dt&gt;
                  &lt;dd&gt;Definition for term&lt;/dd&gt;
              &lt;/dl&gt;
              &lt;dl&gt;
                  &lt;dt&gt;Term 7:&lt;/dt&gt;
                  &lt;dd&gt;Defintion for term&lt;/dd&gt;
  
                  &lt;dt&gt;Term 8:&lt;/dt&gt;
                  &lt;dd&gt;Definition for term&lt;/dd&gt;
  
                  &lt;dt&gt;Term 9:&lt;/dt&gt;
                  &lt;dd&gt;Definition for term&lt;/dd&gt;
  
                  &lt;dt&gt;Term 10:&lt;/dt&gt;
                  &lt;dd&gt;Very Long definition for this term here&lt;/dd&gt;
  
                  &lt;dt&gt;Term 11:&lt;/dt&gt;
                  &lt;dd&gt;Definition for term&lt;/dd&gt;
  
                  &lt;dt&gt;Term 12:&lt;/dt&gt;
                  &lt;dd&gt;Definition for term&lt;/dd&gt;
              &lt;/dl&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is the visual result.  I styled blue and red borders so that it is more easily visualized:</p>
  
  <p><img src="https://i.stack.imgur.com/PmGMo.png" alt="enter image description here"></p>
  
  <p>My goal is to have all the blue and red "boxes" to have the same width no matter what the text-size set is.  E.g. if a user has a default style sheet to make their text very large, it should expand accordingly.  This issue does not only arise when people use their own style sheet, it also arises in IE6 when people select "text-size" other than "medium" -- it makes the text larger, and I want to be able to accommodate that.</p>
  
  <p>I don't think I want to have to set a hard width on any of the "boxes", and I don't want any wrapping of text, or having the floats fall down, out of this two column style. </p>
  
  <p>I can edit the answer with more pictures and examples if I wasn't clear enough.</p>
  
  <p>Also, this is a related, but separate question.  If the browser window is re-sized, with a table you'd expect a portion of the table to become no longer visible as you decrease the width.  With this setup, you get a very strange and ugly result as seen below.  How can this be avoided?</p>
  
  <p><img src="https://i.stack.imgur.com/v16DY.png" alt="enter image description here"></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>It seems there isn't a solution that does not involve giving fixed width's to the elements (and/or an encapsulating element).  In addition, it seems IE6 text-resizing can only be resolved by hard setting your text to a pixel size and just not letting them re-size it.</p>