HTML and CSS Reference
In-Depth Information
Examples
p {vertical-align: top;}
.dive {vertical-align: sub;}
.climb {vertical-align: super;}
#bump {vertical-align: 10%;}
#lower {vertical-align: -1em;}
Compatibility
CSS 1, 2, 3 IE 4, 5 (problems), 5.5+ Netscape 4 (poor support),
Netscape 6+, Firefox 1+
Opera 4+, Safari 1+
Note
• Even when properly supported in browsers, vertical alignment changes will
potentially bump lines above or below the baseline, causing potentially undesirable
formatting changes.
visibility
This property determines whether or not an element is visible.
Syntax
visibility: collapse | hidden | inherit | visible
Examples
p {visibility: inherit;}
.invisible {visibility: hidden;}
.visible {visibility: visible;}
Compatibility
CSS 2, 3
IE 4+
Netscape 4+, Firefox 1+
Opera 4+, Safari 1+
Notes
• The default value of inherit specifies that the visibility state is inherited from the
containing parent.
• This property is not the same as display: none as it simply makes the item invisible;
it does not completely remove it from the display canvas. The following example
demonstrates this:
Search WWH ::




Custom Search