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 grow

The flex grow class sets the flex-grow property. It controls how a flex item will grow relative to other items when extra space is available in the container. Overview
CSS Shortcut class Applied style
flex-grow
flex-grow: 1;
flex-grow-0
flex-grow: 0;

Examples

Grow
flex-grow

The item with the flex-grow class will expand to fill the available space, while the other two items maintain their natural size and won’t grow.

1

2

3

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

No grow
flex-grow-0

The item with the flex-grow-0 class won’t grow to fill the available space, while the other two items will expand to fill the remaining space.

1

2

3

<div class="d-flex">
  <p class="flex-grow">1</p>
  <p class="flex-grow-0">2</p>
  <p class="flex-grow">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-grow ...">
  ...
</div>
Learn more about the responsive layout prefix. 2025-10-01