I have a table with one row full of tds. I made them display: inline-block so that they would wrap with the page. I can't seem to make the text inside them vertical-align: middle. How would I accomplish this? Or is display: inline-block not the way to go? Thanks.
EDIT Here is the code. Sorry I'm new to posting.
<div>
<table class="disk-size-table center">
<tr class="disk-size-row">
<!-- <td class="disk-size-td draggable" data-disk-size="500">
500 GB <!-- I want the 500GB to be vertical align middle
</td> -->
</tr>
</table>
</div>
.disk-size-table {
border-spacing: 0;
}
.disk-size-td {
border: 1px solid black;
border-radius: 5px;
width: 60px;
height: 70px;
text-align: center;
vertical-align: middle;
padding: 0;
display: inline-block;
}
table.center {
margin-left: auto;
margin-right: auto;
}
I dynamically generate tds that look like the commented one. I want them to show up vertically aligned middle. Let me know if I need to post anything else.