Sizing

Sizing utility CSS classes for width and height can be used to control the overall layout of elements.

This page covers sizing utilities including width percentage classes (rz-w-25/50/75/100), width keyword classes (fit-content/min-content/max-content/stretch), viewport width classes (rz-vw-100), min/max width classes, height percentage and viewport classes, min/max height classes, and responsive sizing with breakpoint support (rz-w-{breakpoint}-{size}).

Width percentage CSS classes link

You can use the predefined utility classes for width of 25%, 50%, 75%, 100%.

.rz-w-25
.rz-w-50
.rz-w-75
.rz-w-100
.rz-w-auto

Width keyword CSS classes link

There are width keyword values exposed as CSS classes such as fit-content, min-content, max-content, and stretch.

This container has .rz-w-fit-content width class applied.
This container has .rz-w-min-content width class applied.
This container has .rz-w-max-content width class applied.
This container has .rz-w-stretch width class applied.

Width viewport CSS classes link

These are viewport width values exposed as CSS classes.

.rz-vw-25
.rz-vw-50
.rz-vw-75
.rz-vw-100

Max-width and min-width CSS classes link

Use these CSS classes to set desired minimum and maximum width class="rz-min-w-100".

Width value Width CSS class Min-width CSS class Max-width CSS class
25% .rz-w-25 .rz-min-w-25 .rz-max-w-25
50% .rz-w-50 .rz-min-w-50 .rz-max-w-50
75% .rz-w-75 .rz-min-w-75 .rz-max-w-75
100% .rz-w-100 .rz-min-w-100 .rz-max-w-100

Height percentage CSS classes link

You can use the predefined utility classes for height of 25%, 50%, 75%, 100%.

.rz-h-25
.rz-h-50
.rz-h-75
.rz-h-100
.rz-h-auto

Height viewport CSS classes link

These are viewport height values exposed as CSS classes.

.rz-vh-25
.rz-vh-50
.rz-vh-75
.rz-vh-100

Max-height and min-height CSS classes link

Use these CSS classes to set desired minimum and maximum height class="rz-min-h-100".

Height value Height CSS class Min-height CSS class Max-height CSS class
25% .rz-h-25 .rz-min-h-25 .rz-max-h-25
50% .rz-h-50 .rz-min-h-50 .rz-max-h-50
75% .rz-h-75 .rz-min-h-75 .rz-max-h-75
100% .rz-h-100 .rz-min-h-100 .rz-max-h-100

Responsive sizing link

You can set a specific size value for different screen sizes by inserting the respective breakpoint abbreviation.

For example .rz-w-{breakpoint}-100, where {breakpoint} can be xs, sm, md, lg, xl, xx.

Learn more about Breakpoints.

✨ 오늘의 명언 & 마음의 양식

“어제로부터 배우고, 오늘을 살며, 내일을 희망하라. 중요한 것은 질문을 멈추지 않는 것이다.”

— 알베르트 아인슈타인 (물리학자)
On this page

Demos Configuration

Premium Themes

  • Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark

Free Themes

  • Material
  • Material Dark
  • Standard
  • Standard Dark
  • Default
  • Dark
  • Humanistic
  • Humanistic Dark
  • Software
  • Software Dark
An error has occurred. This app may no longer respond until reloaded. Reload 🗙