Skip to main content
Figuration v3 Preview Available!
Content

Styles for displaying content with some of the most commonly used HTML elements, including normalization, typography, images, tables, buttons, forms, and more.

Images

Opt your images into responsive behavior (so they never become larger than their parent elements) and add lightweight styles to them—all via classes.

Contents

Responsive Images

Images in Figuration are made responsive with .img-responsive. max-width: 100%; and height: auto; are applied to the image so that it scales with the parent element.

Generic responsive image
<img src="..." class="img-responsive" alt="Responsive image">

SVG Images and IE 9-10

In Internet Explorer 9-10, SVG images with .img-responsive are disproportionately sized. To fix this, add width: 100% \9; where necessary. This fix improperly sizes other image formats, so Figuration doesn’t apply it automatically.

Image Thumbnail

Use .img-thumbnail to give an image a bordered appearance.

You might also want to check the border utilites for additional options.

A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera
<img src="..." alt="..." class="img-thumbnail">

Aligning Images

Align images with the helper float classes or text alignment classes. block-level images can be centered using the .mx-auto margin utility class.

A generic square placeholder image with rounded corners A generic square placeholder image with rounded corners
<img src="..." class="img-rounded float-left" alt="...">
<img src="..." class="img-rounded float-right" alt="...">
A generic square placeholder image with rounded corners
<img src="..." class="img-rounded mx-auto d-block" alt="...">
A generic square placeholder image with rounded corners
<div class="text-center">
  <img src="..." class="img-rounded" alt="...">
</div>