Maximum-width Sized Columns : table cols « Tags « HTML / CSS






Maximum-width 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;
}
* .sized1 {
  width: 200px;
}
* .shrinkwrapped {
  width: auto;
  background: yellow;
}



</style>
</head>
<body>


<div class="sized2"> 
    <table class="auto-layout shrinkwrapped"> 
        <tr> <td class="sized1">200px</td><td class="sized2">300px</td></tr>
    </table>
</div> 


</body>
</html>

   
    
  








Related examples in the same category

1.'cols' establishes the number of columns in a table
2.Fixed Table Sized Columns
3.Minimum-width Sized Columns
4.Column width
5.Shrinkwrapped Table: width auto, width 20%
6.Shrinkwrapped Table: 20%, 20%, 20%, 20%, 20%
7.Equal Content-sized Columns
8.Fixed Table and Undersized Columns
9.Sized Table cannot be undersized
10.stretched table with undersized column
11.Percentage-proportioned Columns: 50%, 50%
12.Percentage-proportioned Columns: 20%, 20%
13.Percentage-proportioned Columns: 80%, 80%
14.Percentage-proportioned Columns: 80%, 20%
15.Percentage-proportioned Columns: 80%, 20%, 50%
16.Column groups