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

Justify items

The justify items class sets the justify-items property. It controls how individual items are aligned along the inline (row) axis within their grid areas. It determines the horizontal positioning of content inside each grid cell. In flexbox, justify-items is ignored, so it has no effect. Overview
CSS Shortcut class Applied style
justify-items-center
justify-items: center;
justify-items-stretch
justify-items: stretch;
justify-items-start
justify-items: start;
justify-items-end
justify-items: end;

Examples

Centre
justify-items-center

These items are centred horizontally within their grid areas along the inline axis.

1

2

3

<div class="d-grid grid-cols-3 justify-items-center">
  <p>1</p>
  <p>2</p>
  <p>3</p>
</div>

Stretch
justify-items-stretch

These items stretch to fill the entire width of their grid areas along the inline axis (default behavior).

1

2

3

<div class="d-grid grid-cols-3 justify-items-stretch">
  <p>1</p>
  <p>2</p>
  <p>3</p>
</div>

Start
justify-items-start

These items align to the start edge of their grid areas along the inline axis.

1

2

3

<div class="d-grid grid-cols-3 justify-items-start">
  <p>1</p>
  <p>2</p>
  <p>3</p>
</div>

End
justify-items-end

These items align to the end edge of their grid areas along the inline axis.

1

2

3

<div class="d-grid grid-cols-3 justify-items-end">
  <p>1</p>
  <p>2</p>
  <p>3</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:justify-items-center ...">
  ...
</div>
Learn more about the responsive layout prefix. 2026-02-12