Flexbox
Align Content
Utilities for controls how lines are positioned in multi-line flex containers.
Variant
Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited
API
class | css |
---|---|
content-start | align-content: flex-start |
content-center | align-content: center |
content-end | align-content: flex-end |
content-between | align-content: space-between |
content-around | align-content: space-around |
content-stretch | align-content: stretch |
Usage
content-start
<!-- parent -->
<div class="flex content-start">
<!-- child -->
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.flex,
.content-start;
}
SCSS
content-center
<!-- parent -->
<div class="flex content-center">
<!-- child -->
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.flex,
.content-center;
}
SCSS
content-end
<!-- parent -->
<div class="flex content-end">
<!-- child -->
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.flex,
.content-end;
}
SCSS
content-between
.dummy {
@extend
.flex,
.content-between;
}
SCSS
content-around
.dummy {
@extend
.flex,
.content-around;
}
SCSS
content-stretch
.dummy {
@extend
.flex,
.content-stretch;
}
SCSS