GRID CONTAINOR:
is the container element where the property display with a value grid or the inline-grid is used for defining their direct children into a grid layout.
All direct child elements of a grid container automatically become grid items.
SYNTAX:
.gridbox {
display: grid;
}
PROPERTIES OF GRID-CONTAINOR:
- justify-content.
- align-content.
- align-items.
- grid-template
- grid-auto-rows(TBD).
- grid-auto-columns(TBD).
- grid-template-rows(TBD).
- grid-template-columns(TBD).
- place-content(TBD).
JUSTIFY-CONTENT:
is used to horizontally align the complete grid inside the container.
SYNTAX:
.grid-box {
display: grid;
justify-content: space-between;
}
PROPERTIES OF JUSTIFY-CONTENT:
- space-between: Distributes the complete space equally, leaving no space at the beginning or end.
- space-around: IT creates equal space at the beginning, between, and at the end.
- space-evenly: Distributes the equal space at the beginning, between, and at the end.
- initial(TBD).
- inherit(TBD).
- The align-content property changes the behavior of the flex-wrap property. It aligns flex lines.
- It is used to specify the alignment between the lines inside a flexible container.
SYNTAX:
align-content:center;
ALIGN-ITEMS:
- The align-items property in CSS is used to align flex items along the cross-axis within a flex container.
- It accepts values like flex-start, flex-end, center, baseline, and stretch, controlling the vertical alignment of items in a flexbox.
SYNTAX:
align-items: normal;
GRID-TEMPLATE:
is a shorthand property for defining grid columns, rows, and areas.
SYNTAX:
grid-template: none;



Top comments (0)