Simple Analytics

bg-contain

The class bg-contain is a Tailwind CSS class, part of the background size classes in the category backgrounds.

Example usage

The following code is an example on how to use the class bg-contain.

The above code produces the following result:

Resulting CSS

background-size: contain;

Get Tailscan now

The absolute must-have tool for anyone using Tailwind CSS.

Build, design and debug your Tailwind website visually with Tailscan, right within the browser.

Get Tailscan now
video poster