Styles

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

<div class="app-example app-example--tabs">
  <div class="app-example__toolbar">
    <a href="/styles/layout/common-two-thirds/index.html" class="app-example__new-window" target="_blank">
      Open this
      <span class="govuk-visually-hidden">common two-thirds – layout</span>
      example in a new tab
    </a>
  </div>
  <iframe title="Common two-thirds – Layout example" data-module="app-example-frame" class="app-example__frame app-example__frame--resizable app-example__frame--m" src="/styles/layout/common-two-thirds/index.html" frameBorder="0" loading="lazy"></iframe>
</div>


  <ul class="app-tabs" role="tablist">
    <li class="app-tabs__item js-tabs__item" role="presentation">
      <a href="#common-two-thirds-layout-example-open-html" role="tab" aria-controls="common-two-thirds-layout-example-open-html" data-track="tab-html">HTML</a>
    </li>
  </ul>


  <div class="app-tabs__heading js-tabs__heading"><a href="#common-two-thirds-layout-example-open-html" aria-controls="common-two-thirds-layout-example-open-html" data-track="tab-html">HTML</a></div>

<div class="app-tabs__container js-tabs__container" id="common-two-thirds-layout-example-open-html" role="tabpanel">
  <div class="app-example__code">
    <pre data-module="app-copy" tabindex="0"><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;govuk-width-container&quot;</span>&gt;</span>

<a href="#" class="govuk-back-link">Back</a> <main class="govuk-main-wrapper"> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <h1 class="govuk-heading-xl">Two-thirds column</h1> <p class="govuk-body">This is a paragraph inside a two-thirds wide column</p> </div> </div> </main> </div>