Display Elements or Not in DHTML


The display property can be used to define whether an element includes line breaks above and below, is included in-line with other elements, is treated as part of a list, or is displayed at all. display can be set to block, inline, list-item or none.

.showElement { display: list-item; }
.hideElement { display: none; }