This is a full-width page section with text on one side and a single piece of media (an image or video) on the other, hence “split” into two columns. It’s highly customizable with a lot of optional classes to support different layout variations.
mzp-c-split
):mzp-t-content-md
mzp-t-content-lg
mzp-t-content-xl
mzp-c-split
):mzp-l-split-body-narrow
- body is one third, media is two thirds.mzp-l-split-body-wide
- body is two thirds, media is one third.mzp-c-split
):mzp-l-split-reversed
mzp-c-split-body
):mzp-l-split-h-center
- horizontally centered.mzp-l-split-h-end
- aligned right in left-to-right languages, left in right-to-left.mzp-l-split-v-start
- vertically aligned to the top.mzp-l-split-v-end
- vertically aligned to the bottom.mzp-c-split-media
):mzp-l-split-h-center
- horizontally centered.mzp-l-split-h-end
- aligned right in left-to-right languages, left in right-to-left.mzp-l-split-v-start
- vertically aligned to the top.mzp-l-split-v-end
- vertically aligned to the bottom.mzp-l-split-media-overflow
or
mzp-l-split-media-constrain-height
mzp-c-split-media
):mzp-l-split-media-overflow
- the image can be larger than the Split
container and will “bleed” past the edges. This means some of the image will
be hidden, so choose images wisely.mzp-l-split-media-constrain-height
- the image will scale to fit the height
of the container, which depends on the amount of content in the body.mzp-c-split
):mzp-l-split-pop-top
- protrude from the top.mzp-l-split-pop-bottom
- protrude from the bottom.mzp-l-split-pop
- both.mzp-c-split
):mzp-l-split-center-on-sm-md
- content is centered on small to medium screens.mzp-l-split-hide-media-on-sm-md
- media is hidden on small to medium screens.Note: This component is intended to be a full-width section of a page, with
an outer container that spans the width of the viewport and generous spacing
above and below. Split has an inner container to define its content width, so
don’t place Split inside another mzp-l-content
container.
The nested spacing will get weird.
<section class="mzp-c-split ">
<div class="mzp-c-split-container">
<div class="mzp-c-split-body ">
<h1 class="mzp-u-title-md">Lorem ipsum dolor sit amet</h1>
<p>Lorem ipsum dolor sit amet, amet dolores tincidunt te sea. His aliquid epicuri detraxit in, cum tantas populo periculis te. Ei vix idque noster.</p>
<p><button class="mzp-c-button" type="button">Call to action</button></p>
</div>
<div class="mzp-c-split-media ">
<img class="mzp-c-split-media-asset" src="../../img/image-16-9.jpg" alt="" srcset="../../img/image-16-9-high-res.jpg 2x">
</div>
</div>
</section>