--- url: "https://design-system.service.gov.uk/styles/layout/" titulek: "Layout – GOV.UK Design System" h1: "Layout" popis: "Organise the layout of the page into blocks" jazyk: "en" kanonicka: "https://design-system.service.gov.uk/styles/layout/" drobecky: ["Home", "Styles"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 01:22:59" znaku: 11758 slov: 1816 kodovani: "utf-8" sha256: "585df39d4dc3308a3e6ed5162e2946f6cb67ff4018015cc07f1485ae44044ccf" --- # Layout ## Screen size Design for small screens first, starting with a single-column layout. For most types of page, we recommend using either a ‘two-thirds’ or a ‘two-thirds and one-third’ layout. That stops lines of text getting so long that the page becomes difficult to read on desktop devices. This would usually mean no more than 75 characters per line. Never make assumptions about what devices people are using. Design for different screen sizes rather than specific devices. The default maximum page width is 1020px, but you can make it wider if your content requires it. ## Common layouts ### Two-thirds - HTML HTML ```
Back

Two-thirds column

This is a paragraph inside a two-thirds wide column

``` ### Two-thirds and one-third - HTML HTML ```
Back

Two-thirds column

This is a paragraph inside a two-thirds wide column

One-third column

This is a paragraph inside a one-third wide column

``` ### Row 1: Two-thirds Row 2: Two-thirds and one-third - HTML HTML ```
Back

Two-thirds column

Two-thirds column

This is a lead paragraph inside a two-thirds wide column

This is a paragraph inside a two-thirds wide column

One-third column

This is a paragraph inside a one-third wide column

``` ## Setting up page wrappers If you want to build your layout from scratch, or understand what each of the parts are responsible for, here’s an explanation of how the page wrappers work. ### Limiting width of content To set up your layout you will need to create 2 wrappers. The first should have the class `govuk-width-container`, which sets the maximum width of the content but does not add any vertical margin or padding. If your design requires them, you should place components such as the [Breadcrumbs component](/components/breadcrumbs/), [Back link component](/components/back-link/) and [Phase banner component](/components/phase-banner/) inside this wrapper so that they sit directly underneath the header. ### Add vertical space Within `govuk-width-container` you should add the `govuk-main-wrapper` class to your `
` element. This adds responsive padding to the top and bottom of the page and will be the container for your main content. If you’re not using the [Breadcrumbs component](/components/breadcrumbs/) or [Back link component](/components/back-link/) in your design, add the correct amount of vertical padding above the content by adding one of the following to your `
` element: - the `govuk-main-wrapper--auto-spacing` class - the `govuk-main-wrapper--l` class - if `govuk-main-wrapper--auto-spacing` does not work for your service ### Exploded view of page wrappers - HTML HTML ```
Back

Page title

``` - HTML HTML ```

Page title

``` ## Using the grid system Use the grid system to lay out the content on your service’s pages. Most GOV.UK pages follow a ‘two-thirds and one-third’ layout, but the grid system allows for a number of additional combinations when necessary. Your main content should always be in a two-thirds column even if you’re not using a corresponding one-third column for secondary content. ### Understanding the grid system The grid is structured with a `govuk-grid-row` wrapper which acts as a row to contain your grid columns. You can add columns inside this wrapper to create your layout. To define your columns add the class beginning with `govuk-grid-column-` to a new container followed by the width, for example `govuk-grid-column-one-third` to apply your desired width. The available widths are: ### Full width - HTML HTML ```

govuk-grid-column-full

``` ### One-half - HTML HTML ```

govuk-grid-column-one-half

``` ### One-third - HTML HTML ```

govuk-grid-column-one-third

``` ### Two-thirds - HTML HTML ```

govuk-grid-column-two-thirds

``` ### One-quarter - HTML HTML ```

govuk-grid-column-one-quarter

``` ### Three-quarters - HTML HTML ```

govuk-grid-column-three-quarters

``` ### Example combinations - HTML HTML ```

govuk-grid-column-full

govuk-grid-column-one-half

govuk-grid-column-one-half

govuk-grid-column-two-thirds

govuk-grid-column-one-third

govuk-grid-column-one-third

govuk-grid-column-two-thirds

govuk-grid-column-three-quarters

govuk-grid-column-one-quarter

govuk-grid-column-one-quarter

govuk-grid-column-three-quarters

``` ### Desktop specific grid classes To specify a width at the desktop breakpoint you can use the desktop specific grid classes. For example `govuk-grid-column-two-thirds-from-desktop` will set your column width to be two-thirds width at the desktop breakpoint only. - HTML HTML ```

govuk-grid-column-two-thirds-from-desktop

govuk-grid-column-one-third-from-desktop

``` The desktop specific classes also allow you to set the width of the tablet breakpoint by using them in combination with the standard grid classes. For example using `govuk-grid-column-one-half` and `govuk-grid-column-two-thirds-from-desktop` together will mean the column will be one-half at the tablet breakpoint and two-thirds width at desktop. - HTML HTML ```

govuk-grid-column-one-half

govuk-grid-column-two-thirds-from-desktop

govuk-grid-column-one-half

govuk-grid-column-one-third-from-desktop

``` ### Nested grids - HTML HTML ```

govuk-grid-column-two-thirds

govuk-grid-column-one-half

govuk-grid-column-one-half

``` ## Width override classes If you need to constrain the width of an element independently of the grid system, you can use width override classes. The width override classes start with `govuk-!-width-`, followed by the width on larger screen sizes. For example, `govuk-!-width-one-half` will apply a width of 50% and `govuk-!-width-two-thirds`will apply a width of 66.66%. These examples are for the generic width override classes - read specific [guidance on setting text input width](/components/text-input/#use-appropriately-sized-text-inputs). - HTML HTML ```
``` ## Override how elements display You can use display override classes if you need to override how elements display on the page. Use: - `govuk-!-display-block` to display as a block - `govuk-!-display-inline` to display inline - `govuk-!-display-inline-block` to display as an inline block - `govuk-!-display-none` to remove the element from the page You can also remove elements from the printed version of the page using `govuk-!-display-none-print`. ## Hide elements and keep them accessible to screen readers You can stop elements from being displayed on the page and keep their contents available to screen readers using `govuk-visually-hidden`. You can use this to present content to screen reader users that sighted users do not need. If the element is focusable, such as a link, you can make it become visible when receiving keyboard focus using `govuk-visually-hidden-focusable`. ## Help improve this style To help make sure that this page is useful, relevant and up to date, you can: - take part in the [‘Layout’ discussion on GitHub](https://github.com/alphagov/govuk-design-system-backlog/issues/52) and share your research - [propose a change on GitHub](https://github.com/alphagov/govuk-design-system/edit/main/src/styles/layout/index.md) – read more about [how to propose changes in GitHub](/community/propose-a-content-change-using-github/) ## Need help? If you’ve got a question about the GOV.UK Design System, [contact the team](/contact/).