NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix b » css1 / css2 properties

empty-cells


This CSS2 property is used to control whether or not borders show on empty table cells. It takes two values: show or hide. The example here shows the subtle difference. In most browsers that do not support this property, empty table cell borders are generally hidden.


Examples


<table border="1" style="empty-cells:show; width: 80px;">
<caption>Show Cells</caption>
<tr>
<td colspan="2">Cell 1</td>
</tr>
<tr>
<td>Cell 2</td>
<td></td>
</tr>
</table>

Browser and CSS Support Notes


CSS2
IE does not support except IE Mac
Nav 6, 7
Opera 5, 6, 7

(X)HTML Elements
CSS Properties
Back: display Next: float
< Home | About | Chapters | Examples | Errata | Reference | Site Map >