Feature header
Sample HTML
<header class="ds_feature-header">
<div class="ds_feature-header__primary">
<h1 class="ds_feature-header__title">Design standards</h1>
<p>The patterns included here have been developed for use by government, public sector and third sector non-commercial organisations in Scotland.</p>
</div>
<div class="ds_feature-header__secondary">
<img class="ds_feature-header__image" alt="" src="/binaries/content/gallery/designsystem/examples/category-header-design-standards-svg" />
</div>
</header>
About this component
A feature header has:
- a title
- optional content that describes what’s on the page
- an optional image
On small screens the image will stack below the text content of a feature header.
On large screens the image appears on the right-hand side of a feature header. It takes up half of the available width of the header.
Other versions of this component
Coloured background
Feature headers can use a coloured background instead of white. Light grey is the default alternative background colour. You must ensure that text on the feature header meets colour contrast requirements.
Sample HTML
<header class="ds_feature-header ds_feature-header--background">
<div class="ds_feature-header__primary">
<h1 class="ds_feature-header__title">Design standards</h1>
<p>The patterns included here have been developed for use by government, public sector and third sector non-commercial organisations in Scotland.</p>
</div>
<div class="ds_feature-header__secondary">
<img class="ds_feature-header__image" alt="" src="/binaries/content/gallery/designsystem/examples/category-header-design-standards-svg" />
</div>
</header>
Wide text
The wide text version makes the text area wider and the image area smaller. The text takes up two thirds of the available space, and the image takes up one third.
You can combine this version with the coloured background version.
Sample HTML
<div class="ds_wrapper">
<header class="ds_feature-header ds_feature-header--wide">
<div class="ds_feature-header__primary">
<h1 class="ds_feature-header__title">Design standards</h1>
<p>The patterns included here have been developed for use by government, public sector and third sector non-commercial organisations in Scotland.</p>
</div>
<div class="ds_feature-header__secondary">
<img class="ds_feature-header__image" alt="" src="/binaries/content/gallery/designsystem/examples/category-header-design-standards-svg" />
</div>
</header>
</div>
Live example
Benefits and grants (mygov.scot)
First Minister (gov.scot)
Arts, culture and sport (gov.scot)
Feedback, help and support
If you need help or support you can e-mail us at designsystem@gov.scot
There is a problem
Thanks for your feedback