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 direction

The flex direction class sets the flex-direction property. It defines the main axis along which the flex items are placed. This determines if their layout direction is horizontal (row) or vertical (column). Overview
CSS Shortcut class Applied style
flex-col
flex-direction: column;
flex-col-reverse
flex-direction: column-reverse;
flex-row
flex-direction: row;
flex-row-reverse
flex-direction: row-reverse;

Examples

Column
flex-col

These items are placed vertically, starting with the first item at the top.

1

2

3

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

Reverse column
flex-col-reverse

These items are placed vertically, starting with the last item at the top.

1

2

3

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

Row
flex-row

These items are placed horizontally, starting with the first item on the left.

1

2

3

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

Reverse row
flex-row-reverse

These items are placed horizontally, starting with the last item on the left.

1

2

3

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