I'm using Twitter Bootstrap, and attempting to center a button within a table cell. I only really need it centered vertically.
<table class="table table-bordered table-condensed">
<tbody>
<tr>
<td><a href="#" class="btn btn-primary"><i class="icon-check icon-white"></i></a></td>
<td><a href="#">Todo Item One</a><br /><span class="label label-success">One thing</span></td>
</tr>
</tbody>
</table>
Please see my JSFiddle for the problem. I've tried several table centering tricks I know about, but none seem to work properly. Any ideas?
UPDATE: Yes, I've tried vertical-align:middle;
, and that works if it's inline, but not if it's in a class the td
has. Updated the JSFiddle to reflect this.
Final Update: I'm an idiot, and didn't check to see if it was being overwritten by bootstrap.css