Display attribute value defines the display form of the element in the document: Block: Block element, occupying the entire line width, can contain inline elements. Inline: Inline elements can only set the width and cannot contain block elements. Inline-block: combines the characteristics of block elements and inline elements, and can include inline elements. None: Hides the element and no longer occupies document space. Flex: A scalable container that controls element arrangement and size. Grid: Grid layout, which can create a layout with multiple columns and multiple rows. Table: Table element, consisting of table header, table body and table foot.
Display attribute value in CSS
The Display attribute defines how the element appears in the document and determines how the element behaves. show. It has the following main values:
1. Block
2. Inline
3. Inline-block
4. None
Scalable container, used to allocate space between elements
Grid layout, used to create multi-column and multi-row layouts
Table element, used to display data
run-in
The above is the detailed content of What are the values of display in css. For more information, please follow other related articles on the PHP Chinese website!