title: Vertically center checkbox in Bootstrap table cell
body: <p>I want to vertically center a checkbox inside a Bootstrap table cell, and this is what I have now: </p>
  
  <pre><code>&lt;div&gt;
      &lt;table id="mytb" class="table table-hover table-condensed"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th style="width: 25%;"&gt;A&lt;/th&gt;
                  &lt;th style="width: 40%"&gt;B&lt;/th&gt;
                  &lt;th style="width: 35%"&gt;C&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;Blah&lt;/td&gt;
                  &lt;td&gt;Blah More&lt;/td&gt;
                  &lt;td class="vcenter"&gt;&lt;input type="checkbox" id="blahA" value="1"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Blah&lt;/td&gt;
                  &lt;td&gt;Blah More&lt;/td&gt;
                  &lt;td class="vcenter"&gt;&lt;input type="checkbox" id="blahA" value="1"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Blah&lt;/td&gt;
                  &lt;td&gt;Blah More&lt;/td&gt;
                  &lt;td class="vcenter"&gt;&lt;input type="checkbox" id="blahA" value="1"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  
  /* CSS */
  td.vcenter {
      vertical-align: middle;
  }
  </code></pre>
  
  <p>Example here: <a href="http://jsfiddle.net/dRgt2/2/" rel="nofollow noreferrer">http://jsfiddle.net/dRgt2/2/</a>. It is clear that the checkbox is positioned towards the lower half of the cell.</p>
  
  <p>Notice that in the fiddle above, I've already tried the solution in this question: <a href="https://stackoverflow.com/questions/13771101/centering-a-button-vertically-in-table-cell-using-twitter-bootstrap">Centering a button vertically in table cell, using Twitter Bootstrap</a>, but it doesn't seem to work in my case.</p>
  
  <p>I'm using the latest Bootstrap 2.3.2, if that makes a difference.</p>