The place-content property is used in flexbox and grid layouts and is a shorthand property for align-content and justify-content properties.
If the property has two values: place-content: start center;
| center | The justify-content property value is CENTER. |
|---|---|
| start | The align-content property value is START. |
If the property has one value: place-content: end;
| end | Both align-content and justify-content values are END. |
|---|
| baseline | Aligns the first and last elements. | See example |
|---|---|---|
| center | Aligns elements in the center of the container. | See example |
| end | Aligns elements at the end of the container. | See example |
| flex-end | Aligns elements at the end of the container and only applies to flexbox elements. | See example |
| flex-start | Aligns elements at the start of the container and only applies to flexbox elements. | See example |
| normal | Depends on the layout context. | See example |
| space-around | Evenly distributes available space around each element within the container. | See example |
| space-between | Evenly distributes available extra space between elements within the container. | See example |
| space-evenly | Evenly distributes elements within the container along both axes. | See example |
| start | Aligns elements at the start of the container. | See example |
| stretch | Stretches grid elements to fill the container if size is not set. | See example |
Thank you for visiting! Adding privacy policy.
© 2024 All rights reserved.
Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.