News:

Build a stunning handcrafted website with IT Acumens

Main Menu

Draw the table using CSS

Started by Kalyan, May 25, 2009, 12:21 AM

Previous topic - Next topic

Kalyan

Draw the table using CSS


<html>
<head>
<style type="text/css">
table.one
{
table-layout: automatic
}
table.two
{
table-layout: fixed
}
</style>
</head>
<body>

<table class="one" border="1" width="100%">
<tr>
<td width="20%">1000000000000000000000000000</td>
<td width="40%">10000000</td>
<td width="40%">100</td>
</tr>
</table>

<br />

<table class="two" border="1" width="100%">
<tr>
<td width="20%">1000000000000000000000000000</td>
<td width="40%">10000000</td>
<td width="40%">100</td>
</tr>
</table>

</body>
</html>

dhoni

while draw the table with simple code of css program
iits easy to get this