8. Visual Effect and User Interface Properties
Although the ability to show and hide elements or parts of elements is one of the cornerstones of dynamic HTML (DHTML), the ability to set the visibility of these elements is a feature of CSS.
Keep in mind, however, that until you learn to use JavaScript to change the visibility of an element (see Chapter 16), the visibility controls will not be of much use.
Setting the Visibility of an Element
The visibility
property designates whether an element is visible when it is initially viewed in the window. If visibility is set to hidden
(Table 8.1), the element is invisible but still takes up space in the document, and a big empty rectangle appears where the element should be.
Table 8.1. Visibility Values ...
Get CSS, DHTML, and Ajax: Visual QuickStart Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.