Cards
The cards share an image, heading, and short lesson on spacing. The inset image variant uses a shorter paragraph without topic metadata. Boxed cards use a 24px outer radius and a 16px image radius.
Vertical card
The card keeps its original max-width: 344px and shrinks with the available space. Its outer surface uses border-r-24, while the image keeps border-r-16.
Give content room to breathe
Consistent spacing helps readers see what belongs together. Leave more space between groups than between related elements. Explore spacing and layout
Show code
<div class="clr-primary-bg p-24 border-r-24" style="max-width: 344px">
<a href="/docs/wrapper-and-container/" class="flex mb-8"><img class="border-r-16 mb-0" src="/assets/blog/featured-image/design2seo-11ty-theme.webp" alt="Epic CSS with 11ty UI Library banner" width="484" height="242"></a>
<h3 class="clr-primary mt-0 mb-24">
<a href="/docs/wrapper-and-container/">Give content room to breathe</a>
</h3>
<div class="mb-24">
<span>Design fundamentals</span> · <span>Spacing and rhythm</span>
</div>
<p class="mb-0">
Consistent spacing helps readers see what belongs together. Leave more space between groups than between related elements.
<a href="/docs/wrapper-and-container/" class="clr-underline">Explore spacing and layout</a></p>
</div>
Inset image card
Give the image its own px-12 pt-12 wrapper: a 12px inset at the top and sides, with no bottom padding. The separate content wrapper uses p-24 for 24px padding. The image's 16px radius complements the card's 24px outer radius within the 12px inset. The content has one heading and one short paragraph with an inline link; no metadata row. Top content padding preserves 24px between the image and heading. The card caps at 344px and the image fills its available width while retaining its aspect ratio.
Give content room to breathe
Consistent spacing helps readers see what belongs together. Explore spacing and layout
Show code
<div class="clr-primary-bg border-r-24" style="max-width: 344px">
<div class="px-12 pt-12">
<a href="/docs/wrapper-and-container/" class="flex"><img class="border-r-16 mb-0 w-100" src="/assets/blog/featured-image/design2seo-11ty-theme.webp" alt="Epic CSS with 11ty UI Library banner" width="484" height="242"></a>
</div>
<div class="p-24">
<h3 class="clr-primary mt-0 mb-24"><a href="/docs/wrapper-and-container/">Give content room to breathe</a></h3>
<p class="mb-0">Consistent spacing helps readers see what belongs together. <a href="/docs/wrapper-and-container/" class="clr-underline">Explore spacing and layout</a></p>
</div>
</div>
Horizontal card, image left
Both horizontal variants give the image link wrapper mb-24 mb-lg-0: a 1.5rem bottom margin while stacked, reset to zero from 960 pixels when the horizontal gap takes over.
flex-lg places the image and content side by side from 960 pixels, with equal flex-1 halves and gap-24 between them. Below large, the image stacks above the text.
Give content room to breathe
Consistent spacing helps readers see what belongs together. Leave more space between groups than between related elements. Explore spacing and layout
Show code
<div class="clr-primary-bg p-24 border-r-24 flex-lg gap-24 items-start">
<a href="/docs/wrapper-and-container/" class="flex flex-1 items-start mb-24 mb-lg-0"><img class="border-r-16 mb-0 w-100" src="/assets/blog/featured-image/design2seo-11ty-theme.webp" alt="Epic CSS with 11ty UI Library banner" width="484" height="242"></a>
<div class="flex-1">
<h3 class="clr-primary mt-0 mb-24">
<a href="/docs/wrapper-and-container/">Give content room to breathe</a>
</h3>
<div class="mb-24">
<span>Design fundamentals</span> · <span>Spacing and rhythm</span>
</div>
<p class="mb-0">
Consistent spacing helps readers see what belongs together. Leave more space between groups than between related elements.
<a href="/docs/wrapper-and-container/" class="clr-underline">Explore spacing and layout</a></p>
</div>
</div>
Horizontal card, image right
Put the image first in the HTML so it stacks above the text on smaller screens. Add order-lg-last to the image link wrapper: from 960 pixels, order: 1 moves it after the content, placing the image on the right when flex-lg makes the card horizontal.
Give content room to breathe
Consistent spacing helps readers see what belongs together. Leave more space between groups than between related elements. Explore spacing and layout
Show code
<div class="clr-primary-bg p-24 border-r-24 flex-lg gap-24 items-start">
<a href="/docs/wrapper-and-container/" class="flex flex-1 items-start order-lg-last mb-24 mb-lg-0"><img class="border-r-16 mb-0 w-100" src="/assets/blog/featured-image/design2seo-11ty-theme.webp" alt="Epic CSS with 11ty UI Library banner" width="484" height="242"></a>
<div class="flex-1">
<h3 class="clr-primary mt-0 mb-24">
<a href="/docs/wrapper-and-container/">Give content room to breathe</a>
</h3>
<div class="mb-24">
<span>Design fundamentals</span> · <span>Spacing and rhythm</span>
</div>
<p class="mb-0">
Consistent spacing helps readers see what belongs together. Leave more space between groups than between related elements.
<a href="/docs/wrapper-and-container/" class="clr-underline">Explore spacing and layout</a></p>
</div>
</div>
Author profile for a sidebar
An unboxed profile capped at 344px, also usable in a 268px sidebar. The portrait sits beside a vertically centered name, role and social row; the biography spans the width below. Flex wrapping moves the text below the portrait when space becomes tight. The few inline dimensions keep the copied example self-contained without adding library utilities.
Alex Example
Theme contributor
Writes about practical page layouts, shared content and the small decisions that make interfaces easier to read.
Show code
Alex Example is a demo author. Links point to example.com; replace them with your own profile and feed URLs. Replace the neutral avatar with an image you can use. Its empty alt avoids repeating the adjacent name; write meaningful alt text if your replacement conveys additional information.
Social marks use inherited text color and labeled links. The displayed code omits license comments for readability; Copy HTML includes one consolidated Bootstrap Icons MIT notice for the complete card. Keep that notice when reusing it. Read the full notice or browse individual social/feed SVGs and brand guidance. Standalone Copy SVG includes each icon's notice.