title: How to set the maximum height of CSS tables?
body: <p>I'm trying to vertically center text in a div using the method outlined in this article : <a href="http://css-tricks.com/vertically-center-multi-lined-text/" rel="nofollow noreferrer">http://css-tricks.com/vertically-center-multi-lined-text/</a></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>.container {
      width: 160px;
      margin: 80px auto;
      padding: 5px;
      height: 60px;
      max-height: 60px;
      border: 1px solid black;
      display: table;
  }
  
  .container p {
      height: 60px;
      max-height: 60px;
      display: table-cell;
      vertical-align: middle;
      text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
  &lt;p&gt;This is a lot of text. A really large amount of text, even. So much text here. And it just keeps going, oh my. Wow - so much text.&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;div class="container"&gt;
  &lt;p&gt;Here's one line.&lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>JSFiddle here : <a href="http://jsfiddle.net/Vc88w/2/" rel="nofollow noreferrer">http://jsfiddle.net/Vc88w/2/</a></p>
  
  <p>The div must not go bigger than the specified height of 60px, and any overflowing text should be hidden. The CSS table trick works fine when there is not enough text to make the div overflow, but when there is too much it forces the div to go larger than 60px (the first example), which is not what I want.</p>
  
  <p>Is there a CSS rule besides height and max-height that lets me override the height of a CSS table? Alternatively, how else could I achieve the vertical centering while enforcing a maximum height of 60px on the container div?</p>