Images

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

Responsive images

Images in DITA Bootstrap are made responsive with @scalefit="yes". This applies max-width: 100%; and height: auto; to the image so that it scales with the parent element.

Figure 1. Responsive images
<image scalefit="yes" href="..." />

Image thumbnails

In addition to Bootstrap’s border-radius utilities, you can use the specialized <thumbnail> element to give an image a rounded 1px border appearance.

Figure 2. Image thumbnails
<thumbnail href="..."/>
<image outputclass="img-thumbnail" href="..." />