Information

You appear to be using an unsupported browser, and it may not be able to display this site properly. You may wish to upgrade your browser.

New

Article layout

The article layout is the default layout for webpages.
The article layout changes depending on the width of the browser window. On large displays the layout has a sidebar next to the body content, whereas on smaller displays the sidebar content appears below the body content. Similarly, on large displays the layout has a brand section next to the header, whereas on smaller displays the brand section appears below the header content.

Sample HTML

<main class="ds_layout ds_layout--article">
<div class="ds_layout__header">
<!--
A ds_page-header component or other header content
-->
</div>

<div class="ds_layout__partner">
<!--
Optional partner branding
-->
</div>

<div class="ds_layout__content">
<!--
The article content
-->
</div>

<div class="ds_layout__sidebar">
<!--
Sidebar content, such as related links
-->
</div>

<div class="ds_layout__feedback">
<!--
Feedback form
-->
</div>
</main>

About the article layout

The article layout is the Design System's default layout.

It's applied automatically to the middle of the page template if you do not specify another layout. 

The layout has the following areas:

  • header
  • brand
  • body content
  • sidebar
  • feedback

The article layout changes depending on the width of the browser window. On small displays the areas are stacked. 

On large displays:

  • the sidebar and brand move to the right of the other areas
  • a blank column is introduced

When to use the article layout

Use the article layout for standard web pages with body content. 

Article layouts are used on mygov.scot and gov.scot. For example, After you’ve applied for Young Carer Grant on mygov.scot.  

Use the guide layout instead when content is arranged in chapters, as in the guide content pattern. 

How to use the article layout 

Copy the HTML into the middle of the page template.

Back to top