Equal Content-sized Columns : table column size : Table Style HTML CSS TUTORIALS


HTML CSS TUTORIALS » Table Style » table column size »

 

Equal Content-sized Columns


 


<!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">
* .auto-layout {
  table-layout: auto;
}

* .shrinkwrapped {
  width: auto;
}

* .p2 {
  width: 50%;
  background: red;
}
</style>
</head>
<body>
<h2>Shrinkwrapped Table</h2> 
<table class="auto-layout shrinkwrapped"
    <tr> <td class="p2">2=50%</td> <td class="p2">50%</td></tr>
</table> 

</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Table Style
» table column size