CSS place-items Property Last Updated : 29 Aug, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The CSS place-items property is the shorthand of align-items and justify-items property. The shorthand properties mean in CSS, that you can set the multiple properties values in a single property. So here the place-items property can hold the value of the align-items and justify-items property values. Syntax: place-items: align-items property value justify-items property value Property Values: This property accepts all the possible combination values that can make by the align-items and justify-items property values. auto: If the items have no parents then this property is used that defines the absolute positioned.normal: This property dependent on the layout mode we are in.start: This property used to align flex items from the start of the container.end: This property used to align flex items from the end of the container.flex-start: This property displays the lines at the start of the flex container.flex-end: This property displays the flex lines at the end of the flex container.center: This property aligns flex items at the center of the container.self-start: This property will be packed flush to the edge of the alignment container of the start side of the item.self-end: This property will be packed flush to the edge of the alignment container of the end side of the item.space-evenly: This property defines that the positioned with equal spacing between them but the spacing from corners differ.stretch: This property defines that the line stretched to take the remaining space of the flex container. It is the default value. Below examples illustrate the CSS place-items property: Example 1: In this example, we will use star place-items: flex-start property value. HTML <!DOCTYPE html> <html> <head> <title>CSS place-items Property</title> <style> h1 { color: green; } #container { display: flex; height: 200px; width: 460px; flex-wrap: wrap; background-color: gray; /* place-items can be changed in the live sample */ place-items: flex-start; } div>div { border: 2px solid black; width: 60px; background-color: green; color: white; } .short { font-size: 12px; height: 30px; } .tall { font-size: 14px; height: 40px; } </style> </head> <body> <center> <h1>GeeksforGeeks</h1> <b>CSS place-items Property</b> <div id="container"> <div class="short">Geeks</div> <div class="short"> Computer<br /> Science </div> <div class="tall"> Geeks<br /> for </div> <div class="tall"> Portal<br /> for </div> <div class="tall"></div> </div> </center> </body> </html> Output: Example 2: Here we will use place-items: flex-end property value. HTML <!DOCTYPE html> <html> <head> <title>CSS place-content Property</title> <style> h1 { color: green; } #container { display: flex; height: 200px; width: 460px; flex-wrap: wrap; background-color: gray; /* place-items can be changed in the live sample */ place-items: flex-end; } div>div { border: 2px solid black; width: 60px; background-color: green; color: white; } .short { font-size: 12px; height: 30px; } .tall { font-size: 14px; height: 40px; } </style> </head> <body> <center> <h1>GeeksforGeeks</h1> <b>CSS place-items Property</b> <div id="container"> <div class="short">Geeks</div> <div class="short"> Computer<br /> Science </div> <div class="tall"> Geeks<br /> for </div> <div class="tall"> Portal<br /> for </div> <div class="tall"></div> </div> </center> </body> </html> Output: Browser Versions: Google Chrome 59Edge 79Firefox 45Opera 46Safari 11 Comment More infoAdvertise with us Next Article CSS place-self Property S skyridetim Follow Improve Article Tags : Web Technologies CSS CSS-Properties Similar Reads CSS Display Property The CSS display property specifies an element's display behaviour (the type of rendering box). It defines how an element is rendered in the layout, determining its positioning and interaction within the document's flow and structure.Syntax display: value;Try CSS Display Property #iframe{ height:550p 5 min read CSS place-self Property The CSS place-self property is the shorthand of align-self and justify-self property. A shorthand property in CSS means you can set the multiple properties values in a single property. Here the place-self property can hold the value of the align-self and justify-self property. Syntax: place-self: al 3 min read CSS place-content Property The CSS place-content property is the shorthand of align-content and justify-content property. The shorthand properties in CSS means that you can set the multiple properties values in a single property. Here the place-content property can hold the value of the align-content and justify-content prope 3 min read CSS Left Property The left property in CSS is used to specify the horizontal position of a positioned element. It does not affect non-positioned elements. Note:If the position property is absolute or fixed, the left property specifies the distance between the element's left edge and the left edge of its containing bl 4 min read CSS Grid and place-items together In this article, we will see how can we use the CSS grid and place-items property together to arrange elements on the web page. place-items is not specifically for the CSS grid it can be used with other properties too. Steps: Create three div with class containerEach div will contain three more div 3 min read CSS Order Property The order property defines the arrangement of flexible items inside a flex container, determining their position relative to one another. It allows you to visually reorder items without affecting their order in the source code.The default value of the order property is 0, with higher values appearin 3 min read Like