title: Multiple vertically-aligned elements in a table-cell
body: <p>I am trying to create a table using bootstrap and within each cell I will have 3 data points:</p>
  
  <ol>
  <li>Upper left hand corner</li>
  <li>Center of the cell and vertically aligned in the middle</li>
  <li>Centered of the cell and vertically aligned to the bottom</li>
  </ol>
  
  <p>I posted an example below, but I can't get it to work. </p>
  
  <p>HTML</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;link href="Content/bootstrap.css" rel="stylesheet" /&gt;
      &lt;link href="Content/main.css" rel="stylesheet" /&gt;
      &lt;script src="Scripts/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="Scripts/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;meta charset="utf-8" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="container"&gt;
          &lt;table class="table table-bordered"&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th class="col-xs-1"&gt;Column 1&lt;/th&gt;
                      &lt;th class="col-xs-1"&gt;Column 2&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
                  &lt;tr&gt;
                      &lt;td class="col-xs-1"&gt;
                          &lt;div class="upperleft"&gt;
                              Datapoint1
                          &lt;/div&gt;
                          &lt;br /&gt;
                          &lt;div class="middlecenter"&gt;
                              Datapoint2
                          &lt;/div&gt;
                          &lt;div class="lowercenter"&gt;
                              Datapoint3
                          &lt;/div&gt;
                      &lt;/td&gt;
                      &lt;td class="col-xs-1"&gt;&lt;/td&gt;
                  &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>tr {
      width: 100%;
      display: inline-table;
      height: 120px;
  }
  
  .upperleft {
      display: table-cell;
      text-align: left;
      vertical-align: top;
  }
  
  .middlecenter {
      display: table-cell;
      text-align: center;
      vertical-align: middle;
  }
  
  .lowercenter {
      display: table-cell;
      text-align: right;
      vertical-align: bottom;
  }
  </code></pre>
  
  <p>The original problem was that Data points 2 and 3 are not centered and that data point 3 is not vertically aligned to the bottom of the cell.</p>
  
  <p><a href="https://i.stack.imgur.com/VSF2p.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VSF2p.jpg" alt="enter image description here"></a></p>