A NSW Government website
Search for a command to run...
The reverse stack option flips the visual order of columns in a row, so the right column appears first on desktop. On mobile, columns still stack in the source order, keeping content logical and accessible.
By default, rows in NSW email layouts render left-to-right. Adding the reverse attribute switches the visual flow to right-to-left.
This gives designers the flexibility to put a logo, image, or call to action on the right visually, while developers can keep text first in the HTML.
Use reverse stack when:
Avoid using it everywhere—it should only be applied to rows that specifically require it.
<x-columns
columns="2"
col1Width="1/2"
col2Width="1/2"
feature="right"
reverse="true"
>
<fill:col1>
<!-- Text first in source (accessibility + mobile order) -->
<x-text>Heading goes here</x-text>
<x-text>Supporting copy for the feature.</x-text>
<x-link>Learn more</x-link>
</fill:col1>
<fill:col2>
<!-- Image second in source, appears first visually on desktop -->
<x-image width="300" aspectRatio="16/9" mobileClass="mobile-left" />
</fill:col2>
</x-columns><x-features.horizontal
col1Width="1/2"
col2Width="1/2"
feature="right"
reverse="true"
imageWidth="300"
imgAspectRatio="4/3"
/>This component passes reverse through to <x-columns>, producing the same behaviour.
Do
reverse="true" only on rows that need right-to-left visual order.feature="left" or feature="right" if you want the outer edge flush.Don't
reverse to the entire template.padding, gutter, or feature instead.