Display
.block
.block
Sets the display property to block
, making the element a block-level element. It takes up the full width available and starts on a new line.
CSS equivalent: display: block;
Example usage:
.inline-block
.inline-block
Sets the display property to inline-block
, making the element an inline-level block container. It takes up only as much width as necessary and allows other elements to be placed next to it.
CSS equivalent: display: inline-block;
Example usage:
.inline
.inline
Sets the display property to inline
, making the element an inline-level element. It takes up only as much width as necessary and allows other elements to be placed next to it.
CSS equivalent: display: inline;
Example usage:
.hidden
.hidden
Sets the display property to none
, hiding the element from the page layout. The element will not be rendered and will not take up any space.
CSS equivalent: display: none;
Example usage:
.grid
.grid
Sets the display property to grid
, making the element a grid container. It creates a grid layout where child elements can be placed in rows and columns.
CSS equivalent: display: grid;
Example usage:
.inline-grid
.inline-grid
Sets the display property to inline-grid
, making the element an inline-level grid container. It enables grid layout for its child elements while allowing the element to flow inline with surrounding content.
CSS equivalent: display: inline-grid;
Example usage:
.flex
.flex
Sets the display property to flex
, making the element a flex container. It enables flexible box layout for its child elements, allowing them to be easily aligned and rearranged.
CSS equivalent: display: flex;
Example usage:
.inline-flex
.inline-flex
Sets the display property to inline-flex
, making the element an inline-level flex container. It enables flexible box layout for its child elements while allowing other elements to be placed next to it.
CSS equivalent: display: inline-flex;
Example usage:
.table
.table
Sets the display property to table
, making the element a table. This allows child elements to behave as table components such as rows and cells.
CSS equivalent: display: table;
Example usage:
.inline-table
.inline-table
Sets the display property to inline-table
, making the element as an inline-level table. It allows the element to flow within the content while still behaving like a table.
CSS equivalent: display: inline-table;
Example usage:
.table-caption
.table-caption
Sets the display property to table-caption
, making the element behave as a caption for a table.
CSS equivalent: display: table-caption;
Example usage:
.table-column
.table-column
Sets the display property to table-column
, making the element behave as a column within a table.
CSS equivalent: display: table-column;
Example usage:
.table-row
.table-row
Sets the display property to table-row
, making the element behave as a row within a table.
CSS equivalent: display: table-row;
Example usage:
.table-cell
.table-cell
Sets the display property to table-cell
, making the element behave like a table cell.
CSS equivalent: display: table-cell;
Example usage:
.table-column-group
.table-column-group
Sets the display property to table-column-group
, making the element behave as a container for column elements.
CSS equivalent: display: table-column-group;
Example usage:
.table-row-group
.table-row-group
Sets the display property to table-row-group
, making the element behave as a container for row elements.
CSS equivalent: display: table-row-group;
Example usage:
.table-header-group
.table-header-group
Sets the display property to table-header-group
, creating a group of header rows within a table.
CSS equivalent: display: table-header-group;
Example usage:
.table-footer-group
.table-footer-group
Sets the display property to table-footer-group
, creating a group of footer rows within a table.
CSS equivalent: display: table-footer-group;
Example usage:
.list-item
.list-item
Sets the display property to list-item
, making the element behave as a list item.
CSS equivalent: display: list-item;
Example usage:
These classes allow you to control the display behavior of elements, defining how they interact with other elements in the layout. Use them to achieve different layout structures and alignment effects within your design.
Last updated