GC Design SystemCSS Shortcuts
GC Design System Start to use Page templates overviewBasic page Components overviewAlertBreadcrumbsButtonCardCheckboxesContainerDate inputDate modifiedDetailsError messageError summaryFieldsetFile uploaderFooterGridHeaderHeadingIconInputLanguage toggleLinkNoticePaginationRadiosScreenreader-onlySearchSelectSide navigationSignatureStepperTableTextTextareaTheme and topic menuTop navigation CSS Shortcuts overview Reset styles Responsive layoutState Box sizingContainer sizingDisplayOverflowPositionVisibility FontFont familyFont sizeFont styleFont weightLine heightLink colourLink sizeLink text decorationList styleText alignText colourText overflowText transformWord break MarginPadding Align contentAlign itemsAlign selfFlexFlex directionFlex growFlex shrinkFlex wrapGapGrid columnsGrid rowsJustify contentJustify itemsJustify selfOrderPlace contentPlace itemsPlace self Background colourBorder colourBorder radiusBorder styleBorder width Icon namesIcon sizeImage CursorPointer eventsTransition Styles overviewDesign tokensColourSpacingTypography Contact usGet InvolvedFind a demo

Place items

The place items class sets the place-items property. It is a shorthand for setting the cross axis and the main axis. It controls how items are aligned inside their grid areas along both axes in a grid container. In flexbox, justify-items is ignored, so place-items has no effect. Overview
CSS Shortcut class Applied style
place-items-center
place-items: center;
place-items-stretch
place-items: stretch;
place-items-start
place-items: start;
place-items-end
place-items: end;

Examples

Centre
place-items-center

These items are centred both vertically and horizontally within their grid areas.

1

2

3

4

5

6

<div class="d-grid grid-cols-3 place-items-center">
  <p>1</p>
  <p>2</p>
  <p>3</p>
  <p>4</p>
  <p>5</p>
  <p>6</p>
</div>

Stretch
place-items-stretch

These items stretch to fill their grid areas both horizontally and vertically, if no fixed size is set.

1

2

3

4

5

6

<div class="d-grid grid-cols-3 place-items-stretch">
  <p>1</p>
  <p>2</p>
  <p>3</p>
  <p>4</p>
  <p>5</p>
  <p>6</p>
</div>

Start
place-items-start

These items align to the start edge of both axes within their grid areas.

1

2

3

4

5

6

<div class="d-grid grid-cols-3 place-items-start">
  <p>1</p>
  <p>2</p>
  <p>3</p>
  <p>4</p>
  <p>5</p>
  <p>6</p>
</div>

End
place-items-end

These items align to the end edge of both axes within their grid areas.

1

2

3

4

5

6

<div class="d-grid grid-cols-3 place-items-end">
  <p>1</p>
  <p>2</p>
  <p>3</p>
  <p>4</p>
  <p>5</p>
  <p>6</p>
</div>
Conditional styling Apply this style to specific screen sizes Use a responsive layout prefix to apply this class only to a specified screen size. The available breakpoints are:
  • xs: > 480px
  • sm: > 640px
  • md: > 768px
  • lg: > 1024px
  • xl: > 1280px
<div class="xs:place-items-center ...">
  ...
</div>
Learn more about the responsive layout prefix. 2026-02-12