Horje

How to set the width of a table header cell (with CSS)

Add a width i percent for ths.

index.html
Example: HTML
 <table style="width:100%">
  <tr>
    <th style="width:70%">Month</th>
    <th style="width:30%">Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
</table> 

Output should be:

How to set the width of a table header cell (with CSS)




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