Kiko Kiko - 1 year ago 72
CSS Question

CSS: How to align table data

enter image description here

How to align BDS to education? Without using white-space:nowrap.

<div class="doc-schedule clearfix">
<table style="border: 0px;border-style: none">
<td class="tdPadding"><span>{{ page.dentist_specialty }}</span></td>
<td class="tdPadding"><span>{{ page.dentist_education }}</span></td>
<td><strong>Work Days</strong></td>
<td class="tdPadding"><span>{{ page.dentist_workdays }}</span></td>

Answer Source

tr are vertically aligned middle by default

add this

tr {