Hero
Full-width hero blocks for prominent page-level messaging with text and media layouts.
@volvo-cars/css v3.3.1
Page placement
Section titled “Page placement”Use one hero at the top of the page as the entry point.
Title and supporting copy
Section titled “Title and supporting copy”Keep the title short, clear, and focused on one message. Aim for 1–2 lines. Move supporting explanation into the body rather than extending the title.
Keep body copy concise. Avoid long paragraphs or multiple text blocks competing for attention.
When the body contains a short message such as a price, pair it with an action.
Show code
<section class="media-hero"> <h1 slot="title">The new EX60 is here</h1> <div slot="body"> <p>Recommended price from 689 000 kr</p> </div> <div slot="action"> <a href="#" class="link-underlined">Shop today</a> </div> <img slot="media" src="/images/decorative/ex60-road.avif" alt="" /></section>Actions
Section titled “Actions”Use short, specific action labels that describe the next step. Give the main action clear priority over secondary actions.
Media cropping
Section titled “Media cropping”Keep important subjects visible as media crops across screen sizes. Avoid placing them close to the edges, and check the crop on both small and large screens.