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

Flex wrap

The flex wrap class sets the flex-wrap property. It controls how flex items wrap onto multiple lines if there isn’t enough space for them. In flexbox, the flex-direction property sets the main and cross axis. The effects of flex-wrap change based on the container's direction. Overview
CSS Shortcut class Applied style
flex-wrap
flex-wrap: wrap;
flex-wrap-reverse
flex-wrap: wrap-reverse;
flex-nowrap
flex-wrap: nowrap;

Examples

Wrap
flex-wrap

These items wrap onto multiple lines or columns when they don’t fit in a single row or column. Wrapping occurs in the default direction based on the cross axis. In row layouts, it wraps from start to end vertically.
In column layouts, it wraps from start to end horizontally.

1

2

3

<div class="d-flex flex-wrap">
  <p>1</p>
  <p>2</p>
  <p>3</p>
</div>

Reverse wrap
flex-wrap-reverse

These items wrap onto multiple lines or columns when they don’t fit in a single row or column. Wrapping occurs in the reverse direction along the cross axis. In row layouts, it wraps from end to start vertically.
In column layouts, it wraps from end to start horizontally.

1

2

3

<div class="d-flex flex-wrap-reverse">
  <p>1</p>
  <p>2</p>
  <p>3</p>
</div>

No wrap
flex-nowrap

These items are forced onto one line without wrapping.

1

2

3

<div class="d-flex flex-nowrap">
  <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:flex-wrap ...">
  ...
</div>
Learn more about the responsive layout prefix. 2025-10-01