The best CSS visibility property Tutorial In 2024, In this tutorial you can learn Examples,Attribute definitions and instructions,Browser Support,Property Value,More examples,related articles,
Make <h2> element is not visible:
visibility attribute specifies whether an element is visible.
Tip: Even if the invisible elements will occupy space on the page.Please use the "display" property to create does not occupy space on the page is not visible elements.
Defaults: | visible |
---|---|
inherit: | yes |
version: | CSS2 |
JavaScript syntax: | object .style.visibility = "hidden" |
All major browsers support the visibility property.
Note:: Internet Explorer (including IE8) does not support the version attribute value "inherit" or "collapse".
value | description |
---|---|
visible | Defaults. Element is visible. |
hidden | Element is not visible. |
collapse | When used in a table element, this value can delete a row or column, but it does not affect the layout of the table. Space is occupied by the row or column will be left to other content usage. If this value is used in the other elements it will be rendered as "hidden". |
inherit | Provisions should inherit the visibility attribute value from the parent element. |
The form element is set to collapse
This example demonstrates how to make a table element superimposed.
CSS tutorial: CSS Display and visibility