Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS empty-cells definition

Syntax

empty-cells: [show | hide];

Description

This property defines if empty cells are shown in a table.

Values

show | hide

Version information

Available since CSS 2.0.

Example

[Try this example yourself]
<style type="text/css">

table.hide
{
  empty-cells: hide;
}

table.show
{
  empty-cells: show;
}

</style>

<table class="show" border="1">
  <tr>
    <td></td>
    <td>Top right</td>
  </tr>
  <tr>
    <td>Lower left</td>
    <td>Lower right</td>
  </tr>
</table>

<br />

<table class="hide" border="1">
  <tr>
    <td></td>
    <td>Top right</td>
  </tr>
  <tr>
    <td>Lower left</td>
    <td>Lower right</td>
  </tr>
</table>

Output

Top right
Lower left Lower right

Top right
Lower left Lower right
  • Comments

No comments added.