Hide and show CSS elements
1. Introduction:
display: Make the paragraph appear within the line Box
visibility: Attribute specifies whether the element is visible.
2. display attribute
value | description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
none | This element will not be displayed. | ||||||||||||||||||||||||||||||||
block | #This element will be displayed as a block-level element, with line breaks before and after this element. | ||||||||||||||||||||||||||||||||
inline | Default. This element will be displayed as an inline element with no line breaks before or after the element. | ||||||||||||||||||||||||||||||||
inline-block | Inline block element. (New value in CSS2.1) | ||||||||||||||||||||||||||||||||
list-item | This element will be displayed as a list. | ||||||||||||||||||||||||||||||||
run-in | This element will appear as a block-level element or an inline element, depending on the context. | ||||||||||||||||||||||||||||||||
compact | The value compact was present in CSS, but was removed from CSS2.1 due to lack of widespread support . | ||||||||||||||||||||||||||||||||
marker | There is a value marker in CSS, but it has been removed from CSS2.1 due to lack of widespread support. . | ||||||||||||||||||||||||||||||||
##table | This element will be displayed as a block-level table (similar to
|