Horje

How to specify no word-wrapping in table header cell (with CSS)

Add Nowrap to th.

index.html
Example: HTML
 <table>
  <tr>
    <th>Month</th>
    <th style="white-space:nowrap">My Savings for a new car</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
</table> 

Output should be:

How to specify no word-wrapping in table header cell (with CSS)




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin