Flexbox

Align Self

Utilities for controls how an individual flex item is positioned along container's cross axis.


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

classcss
self-autoalign-self: auto
self-baselinealign-self: baseline
self-startalign-self: flex-start
self-centeralign-self: center
self-endalign-self: flex-end
self-stretchalign-self: stretch

Usage

1
self-auto
<!-- parent -->
<div class="flex">
<-- child -->
<div class="self-auto">
...
</div>
</div>
HTML
.dummy-parent {
@extend
.flex;
}
.dummy-child {
@extend
.self-auto;
}
SCSS
1
self-baseline
<div class="flex">
<div class="self-baseline">
...
</div>
</div>
HTML
.dummy-parent {
@extend
.flex;
}
.dummy-child {
@extend
.self-baseline;
}
SCSS
1
self-auto
<div class="flex">
<div class="self-start">
...
</div>
</div>
HTML
.dummy-parent {
@extend
.flex;
}
.dummy-child {
@extend
.self-start;
}
SCSS
1
self-auto
<div class="flex">
<div class="self-center">
...
</div>
</div>
HTML
.dummy-parent {
@extend
.flex;
}
.dummy-child {
@extend
.self-center;
}
SCSS
1
self-auto
<div class="flex">
<div class="self-end">
...
</div>
</div>
HTML
.dummy-parent {
@extend
.flex;
}
.dummy-child {
@extend
.self-end;
}
SCSS
1
self-auto
<div class="flex">
<div class="self-stretch">
...
</div>
</div>
HTML
.dummy-parent {
@extend
.flex;
}
.dummy-child {
@extend
.self-stretch;
}
SCSS