Column Groups : table body : Table Style HTML CSS TUTORIALS


HTML CSS TUTORIALS » Table Style » table body »

 

Column Groups


 
<!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">
* .col1 {
  background: wheat;
}

* .col2 {
  background: gold;
}

* .col3 {
  background: orange;
}

* .col4 {
  background: tomato;
}

* .col5 {
  background: firebrick;
}

* .col6 {
  background: black;
  color: white;
}

</style>
</head>
<body>
<table> 
    <colgroup>
        <col class="col1" />
        <col class="col2" />
        <col class="col3" /> 
        <col class="col4" />
        <col class="col5" />
        <col class="col6" />
     </colgroup> 
    
    <tr> 
         <td rowspan="2">1</td> 
         <td colspan="2">2-3</td> 
    </tr> 
    <tr> 
         <td>8</td> 
         <td>9</td> 
         <td>asdf </td> 
         <td>asdf</td> 
         <td>12</td> 
    </tr> 
</table> 



</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Table Style
» table body