empty-cells : empty cells : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » empty cells »

 

empty-cells


 
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<title>Table Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
body {
  font-family: arial, verdana, sans-serif;
}

td {
  border: solid 1px black;
  width: 100px;
  empty-cells: hide;
}
</style>
</head>

<body>

<table>
  <tr>
    <td></td>
    <td scope="col">Race 1</td>
    <td scope="col">Race 2</td>
    <td scope="col">Race 3</td>
  </tr>
  <tr>
    <td scope="row">Driver A</td>
    <td>2233s</td>
    <td>1850s</td>
    <td>845s</td>
  </tr>
  <tr>
    <td scope="row">Driver B</td>
    <td>2456s</td>
    <td>1623s</td>
    <td>811s</td>
  </tr>
</table>

</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» empty cells