Loading...
A NSW Government website
Search for a command to run...
The NSW Email Design System uses a single responsive breakpoint at 639px.
When the screen is 639px or narrower, the layout switches to a mobile-friendly format:
Above 640px, layouts use fixed-width tables (usually 640px), with columns displayed side by side. This ensures balance and alignment on larger screens.
Use breakpoint and stacking features when you need to:
mobile-
apply mobile–specific stacking or alignment rules..wrapper
and .row
change from fixed width to fluid (90% or 100%).Class | Purpose | Behaviour at ≤639px |
---|---|---|
.mobile-1 → .mobile-11 | Fractional column widths | Sets column max-width between 8.33% and 91.66%. |
.mobile-12 | Full-width column | Makes column 100% width and applies left/right padding. |
.mobile-center | Center element (block-level) | Converts element to table, removes floats, applies auto margins. |
.mobile-left | Left-align element | Floats element left with no margin. |
.mobile-right | Right-align element | Floats element right with adjusted margins. |
.mobile-text-center | Text alignment | Forces text to align centre. |
.mobile-text-left | Text alignment | Forces text to align left. |
.mobile-text-right | Text alignment | Forces text to align right. |
.show-on-mobile | Visibility | Displays element only on mobile. |
.hide-on-mobile | Visibility | Hides element on mobile. |
.mobile-full-width | Width utility | Forces element to 100% width. |
.mobile-first | Table row order | Forces element to render as table-header-group. |
.mobile-intermediate | Table row order | Forces element to render as table-row. |
.mobile-last | Table row order | Forces element to render as table-footer-group. |
.no-border-on-mobile | Border control | Removes borders on mobile for cleaner stacking. |
<x-columns columns="2" col1Width="1/2" col2Width="1/2" gutter="16">
<slot:col1>
<img src="feature.png" class="mobile-center" alt="Feature image">
</slot:col1>
<slot:col2>
<p>Supporting text for the feature goes here.</p>
</slot:col2>
</x-columns>
.mobile-center
ensures it is centred.Do
.mobile-12
for predictable column stacking..mobile-center
, .mobile-text-center
) with columns.Don't
.hide-on-mobile
.