Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

table column width

<!--Simple table with column width-->
<table>
    <colgroup>
       <col span="1" style="width: 15%;">
       <col span="1" style="width: 70%;">
       <col span="1" style="width: 15%;">
    </colgroup>
	<!--Put <thead> and <tr>'s here-->
    <tbody>
       <td>From</td>
       <td>Subject</td>
       <td>Date</td>
    </tbody>
</table>
<!--This code ensures that the columns span one column each (span attribute)-->
<!--Width attribute can be pixel too.-->
Source by html5-tutorial.net #
 
PREVIOUS NEXT
Tagged: #table #column #width
ADD COMMENT
Topic
Name
1+9 =