html - CSS: How to align table data -


enter image description here

how align bds education? without using white-space:nowrap.

<div class="doc-schedule clearfix">   <p>     <table style="border: 0px;border-style: none">       <tr>         <td><strong>speciality</strong></td>         <td class="tdpadding"><span>{{ page.dentist_specialty }}</span></td>       </tr>       <tr>         <td><strong>education</strong></td>         <td class="tdpadding"><span>{{ page.dentist_education }}</span></td>       </tr>       <tr>         <td><strong>work days</strong></td>         <td class="tdpadding"><span>{{ page.dentist_workdays }}</span></td>       </tr>     </table>   </p> </div> ........ 

tr vertically aligned middle default

add

tr {   vertical-align:top } 

demo


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

python 3.5 - Pyqtgraph string in x tick -