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

Order

The order class sets the order property. It controls the visual order of items within a flex container. By default, flex items follow the order in which they appear in the HTML. The order property can change their position without modifying the HTML structure. Using the order property changes the visual order of flex items without altering their order in the HTML. If the visual and reading orders don't match, it can cause confusion for people who use keyboard navigation or screenreaders. Test with assistive technologies to ensure information is clear and accessible. Overview
CSS Shortcut class Applied style
order-1
order: 1;
order-2
order: 2;
order-3
order: 3;
order-4
order: 4;
order-5
order: 5;
order-6
order: 6;
order-7
order: 7;
order-8
order: 8;
order-9
order: 9;
order-10
order: 10;
order-11
order: 11;
order-12
order: 12;
order-first
order: -9999;
order-last
order: 9999;
order-none
order: 0;

Examples

Order 1-12
order-<value>

The visual order of flex items change by setting the CSS order property from 1 to 12. For example, the item placed third in the HTML appears visually in second position when given the order-2 class.

1

2

3

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

Order first
order-first

The item placed third in the HTML appears visually at the beginning of the flex container when given the order-first class.

1

2

3

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

Order last
order-last

The item placed first in the HTML appears visually at the end of the flex container when given the order-last class.

1

2

3

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

Order none
order-none

This is the default order value. The item placed second in the HTML maintains its default position in the flex container when given the order-none class.

1

2

3

<div class="d-flex">
  <p>1</p>
  <p class="order-none">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:order-first ...">
  ...
</div>
Learn more about the responsive layout prefix. 2026-02-12