-
Notifications
You must be signed in to change notification settings - Fork 1
Column Class
0phoff edited this page Nov 21, 2023
·
3 revisions
This class creates a CSS grid for you to place content in.
Each child of your component will be placed in a separate, equally sized, column.
You can use the grid-column
CSS property to change the placement and number of columns each child uses.
HINT
The column layout is a default layout with this.column
class added to the::content::
slot wrapper.
/
/* Base Styling */
.column {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
}
/* Overridable Styling */
:where(.column) {
place-items: center;
}