CSS place-content Property
border: 1px solid;
place-content: center space-around;
The place-content CSS property align content along both the block and inline directions at once (i.e. the align-content and justify-content properties) in a relevant layout system such as Grid or Flexbox.
The place-content property is a shorthand for the following CSS properties:
The following table describes the values of this property:
|This is default value. Items are stretched to fit the flex container. The free-space is divided equally between all the items.
|Items are positioned at the center of the flex container.
|Items are positioned at the end of the flex container.
|Items are positioned at the beginning of the flex container.
|Items are evenly distributed in the flex container so that the spaces around every item are same.
|Items are evenly distributed in the flex container in such a way that the space between two adjacent items is same.
|The items are packed flush to each other against the start edge of the alignment container in the cross axis.
|The items are packed flush to each other against the end edge of the alignment container in the cross axis.
|The items are packed in their default position as if no align-content value was set.
|Set with the corresponding baseline.
|The items are evenly distributed within the alignment container along the cross axis. The spacing between each pair of adjacent items, the start edge and the first item, and the end edge and the last item, are all exactly the same.
|Used alongside an alignment keyword. If the chosen keyword means that the item overflows the alignment container causing data loss, the item is instead aligned as if the alignment mode were start.
|Used alongside an alignment keyword. Regardless of the relative sizes of the item and alignment container and whether overflow which causes data loss might happen, the given alignment value is honored.
|Sets this property to its default value.
|If specified, the associated element takes the computed value of its parent element animation-delay property.
|Reverts the cascaded value of the property from its current value to the value the property
|Rollback styles to the ones specified in previous cascade layers.
|Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.
Default CSS Property Values
place-content: normal normal;