empty-cells: hide : empty cells « CSS « HTML / CSS

HTML / CSS » CSS » empty cells 
empty-cells: hide
 
<?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>

 
Related examples in the same category
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.