CSS Sizing
Use the height and width utilities to make elements about as wide and as tall as their parents.
Example
Width 25%
Width 50%
Width 75%
Width 100%
Width auto
Height auto
Height 25%
Height 50%
Height 75%
Height 100%
.m-auto
.h-25
.h-50
.h-75
.h-100
.mh-100
.w-auto
.w-25
.w-50
.w-75
.w-100
.mw-100
If you need to, utilize max-width: 100%
and max-height: 100%
utilities (.mw-100
and .mh-100
).
The fill-content
helper class dynamically adjusts an element’s height by calculating the remaining viewport space after accounting for the header and footer. It adapts across breakpoints to ensure the element fills the available area.
Get in touch
Do you have an idea, or want to help us improve this page? Reach out to us via email.
DTMB-DG-Support@michigan.govNeed help? Visit our Support page to learn how to get assistance, troubleshoot issues, and connect with the team.