Column Width: percentage, auto and px
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css" media="Screen">
* .i {
background-color: pink;
}
* .a {
width: auto;
}
* .b {
width: 75px;
}
* .c {
width: 150px;
}
* .d {
width: 10%;
}
* .e {
width: 50%;
}
</style>
</head>
<body>
<table>
<tr>
<td class="a i">auto</td>
<td class="a">auto</td>
<td class="a">auto</td>
<td class="a">auto</td>
<td class="a">auto</td>
</tr>
<tr>
<td class="a">auto</td>
<td class="b i">75px</td>
<td class="b">75px</td>
<td class="b">75px</td>
<td class="b">75px</td>
</tr>
<tr>
<td class="a">auto</td>
<td class="a">auto</td>
<td class="c i">150px</td>
<td class="c">150px</td>
<td class="c">150px</td>
</tr>
<tr>
<td class="a">auto</td>
<td class="a">auto</td>
<td class="a">auto</td>
<td class="d i">10%</td>
<td class="d">10%</td>
</tr>
<tr>
<td class="a">auto</td>
<td class="a">auto</td>
<td class="a">auto</td>
<td class="a">auto</td>
<td class="e i">50%</td>
</tr>
</table>
</body>
</html>
Related examples in the same category