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 self

The place self class sets the place-self property. It is a shorthand for setting both the cross axis the main axis on a single grid item. It overrides the container’s place-items setting and controls how that individual item is aligned within its grid area. In flexbox, justify-self is ignored, so place-self has no effect. Overview
CSS Shortcut class Applied style
place-self-auto
place-self: auto;
place-self-center
place-self: center;
place-self-stretch
place-self: stretch;
place-self-start
place-self: start;
place-self-end
place-self: end;

Examples

Auto
place-self-auto

The item with the place-self-auto class follows the container’s place-items setting.

1

2

3

4

5

6

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

Centre
place-self-center

The item with the place-self-center class is centred both vertically and horizontally within its grid area, overriding the container’s place-items setting.

1

2

3

4

5

6

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

stretch
place-self-stretch

The item with the place-self-stretch class stretches to fill the entire grid area along both axes, overriding the container’s place-items setting.

1

2

3

4

5

6

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

Start
place-self-start

The item with the place-self-start class aligns to the start edge of both axes within its grid area, overriding the container’s place-items setting.

1

2

3

4

5

6

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

End
place-self-end

The item with the place-self-end class aligns to the end edge of both axes within its grid area, overriding the container’s place-items setting.

1

2

3

4

5

6

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