CSS place-self property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
CSS place-self property places an element horizontally and vertically. It is a shorthand property of align-self and justify-self.
Syntax
place-self : align-self justify-self
Property values
align-self
autoDefault
-
It stretches out the element vertically to fill the width of container completely.
- Try it
align-self: auto; stretch
-
It stretches the element so as fill the width of container completely.
- Try it
align-self: stretch; flex-start
-
flex-start aligns the current element at the start of flex container.
- Try it
align-self: flex-start; flex-end
-
flex-end aligns the current element at the end of the flex container.
- Try it
align-self: flex-end;
justify-self
autoDefault
-
It stretches out the element vertically to fill the width of container completely.
- Try it
justify-self: auto; stretch
-
It stretches the element so as fill the width of container completely.
- Try it
justify-self: stretch; flex-start
-
flex-start aligns the current element at the start of flex container.
- Try it
justify-self: flex-start; flex-end
-
flex-end aligns the current element at the end of the flex container.
- Try it
justify-self: flex-end;
Applicable to
It applies to block-level boxes, absolutely-positioned boxes, and grid items.