CSS Display & Visibility

The CSS Display property determines the manner in which an HTML element - a box - is displayed. While the specification allows for a plethora of display types, in practice only the first three, listed below, are consistently implemented across all the major browsers.

We refrain from discussing the remaining display options since browser implementations for them are highly patchy and variable. The CSS Visibility property is far simpler to understand. With visibility:hidden the box is removed from the visual display. However, it continues to influence the normal flow of its neighbors as though it were still visible. visibility:visible is the default property setting. This property can take a third value, collapse which is only relevant for table rows where it has the same effect as display:none.

Jump To...

Colophon