The place
-self
CSS property shorthand property sets both the align-self
and justify-self
properties. The first value is the align-self
property value, the second the justify-self
one. If the second value is not present, the first value is also used for it.
/* Keyword values */ place-self: auto center; place-self: normal start; /* Positional alignment */ place-self: center normal; place-self: start auto; place-self: end normal; place-self: self-start auto; place-self: self-end normal; place-self: flex-start auto; place-self: flex-end normal; place-self: left auto; place-self: right normal; /* Baseline alignment */ place-self: baseline normal; place-self: first baseline auto; place-self: last baseline normal; place-self: stretch auto; /* Global values */ place-self: inherit; place-self: initial; place-self: unset;
auto
align-items
value.normal
start
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-start
self-end
flex-start
flex-end
center
baseline
first baseline
last baseline
first baseline
is start
, the one for last baseline
is end
.stretch
auto
-sized, its size is increased equally (not proportionally), while still respecting the constraints imposed by max-height
/max-width
(or equivalent functionality), so that the combined size of all auto
-sized items exactly fills the alignment container along the cross axis.Specification | Status | Comment |
---|---|---|
CSS Box Alignment Module Level 3 The definition of 'place-self' in that specification. | Working Draft | Initial definition |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 59 | ? | 45 | ? | ? | No |
Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | Opera Android | iOS Safari | Samsung Internet |
---|---|---|---|---|---|---|---|
Basic support | 59 | 59 | ? | Yes | No | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/place-self