The image class sets the width or max-width properties of an image. It controls how big the image is. Overview
CSS Shortcut class
Applied style
img-full
width: 100%;
img-responsive
max-width: 100%;
Examples
Full img-full
This image takes up 100% of the available width.
<figure> <img src="/images/common/css-shortcuts/image-example.png" alt="A horizontal banner with purple flowers." class="img-full" /> <figcaption> This image takes up 100% of the available width. </figcaption></figure>
Responsive img-responsive
This image scales with its parent element.
<figure class="container-md"> <img src="/images/common/css-shortcuts/image-example.png" alt="A horizontal banner with purple flowers." class="img-responsive" /> <figcaption> This image scales with its parent element. </figcaption></figure>
Conditional stylingApply this style to specific screen sizesUse a responsive layout prefix to apply this class only to a specified screen size. The available breakpoints are:
xs: > 480px
sm: > 640px
md: > 768px
lg: > 1024px
xl: > 1280px
<div class="xs:img-responsive ...">
...
</div>
Learn more about the responsive layout prefix.2025-10-01