Skip to content

A modifier to allow images to go full width #218

@Demotive

Description

@Demotive

As an example:

<figure class="nhsuk-image" style="width: 92vw; max-width: 960px; ">
  <img class="nhsuk-image__img" src="prototype-flow.png" alt="Diagram depicting the prototype user journey using sequential screen grabs from left to right.">
  <figcaption class="nhsuk-image__caption">
    The prototype journey from left to right, from calculator result to a ‘finding services’ loading screen.
  </figcaption>
</figure>

Allows a landscape image to expand out of the text div to the full 960 width.

The figure setup is doable with markdown

The need is to be able to achieve width: 92vw; max-width: 960px;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions