CSS table-layout Property

Submitted by:Jhon Jhon

Date added:27 March, 2013

Category:CSS

CSS code for table-layout property using an example code in html page.

Tags: table layout

Code Snippet:

<!DOCTYPE html>
<html>
<head>
<style>
table.ex1 {table-layout:auto}
table.ex2 {table-layout:fixed}
</style>
</head>

<body>
<table class="ex1" border="1" width="100%">
<tr>
<td width="5%">5210000001220102001202200</td>
<td width="95%">55500</td>
</tr>
</table>
<br>

<table class="ex2" border="1" width="100%">
<tr>
<td width="5%">5210000001220102001202200</td>
<td width="95%">55500</td>
</tr>
</table>

</body>
</html>
 
 

Comments