--- title: align-self slug: Web/CSS/align-self tags: - CSS - flexbox - Свойства translation_of: Web/CSS/align-self ---
{{CSSRef}}
Свойство CSS align-self выравнивает flex-элементы по текущей flex-линии, переопределяя значение свойства align-items. Если у какого-либо flex-элемента margin в поперечной оси выставлен в auto, то align-self игнорируется.
{{cssinfo}}
Данное свойство не применяется к block-level boxes и к ячейкам таблицы
Подробнее и больше информации читайте в Using CSS flexible boxes.
/* Keyword values */
align-self: auto;
align-self: normal;
/* Positional alignment */
/* align-self does not take left and right values */
align-self: center; /* Put the item around the center */
align-self: start; /* Put the item at the start */
align-self: end; /* Put the item at the end */
align-self: self-start; /* Align the item flush at the start */
align-self: self-end; /* Align the item flush at the end */
align-self: flex-start; /* Put the flex item at the start */
align-self: flex-end; /* Put the flex item at the end */
/* Baseline alignment */
align-self: baseline;
align-self: first baseline;
align-self: last baseline;
align-self: stretch; /* Stretch 'auto'-sized items to fit the container */
/* Overflow alignment */
align-self: safe center;
align-self: unsafe center;
/* Global values */
align-self: inherit;
align-self: initial;
align-self: unset;
autonormalstart on replaced absolutely-positioned boxes, and as stretch on all other absolutely-positioned boxes.stretch.stretch.stretch, except for boxes with an aspect ratio or an intrinsic sizes where it behaves like start.self-startself-endflex-startflex-endcenterbaseline
first baselinelast baselinefirst baseline is start, the one for last baseline is end.stretchauto-sized, its size is increased equally (not proportionally), while still respecting the constraints imposed by {{cssxref("max-height")}}/{{cssxref("max-width")}} (or equivalent functionality), so that the combined size of all auto-sized items exactly fills the alignment container along the cross axis.safestart.unsafe{{Compat}}
{{Compat("css.properties.align-self.grid_context")}}