Sizing
Height Classes
.h-{number}
Sets the height of the element.
CSS equivalent: height: {number}px;
Example usage:
.h-{number}p
Sets the height of the element as a percentage of its parent container's height.
CSS equivalent: height: {number}%;
Example usage:
.h-{number}vh
Sets the height of the element as a percentage of the viewport's height.
CSS equivalent: height: {number}vh;
Example usage:
Max Height Classes
.max-h-{number}vh
Sets the maximum height of the element as a percentage of the viewport's height.
CSS equivalent: max-height: {number}vh;
Example usage:
Min Height Classes
.min-h-{number}vh
Sets the minimum height of the element as a percentage of the viewport's height.
CSS equivalent: min-height: {number}vh;
Example usage:
Width Classes
.w-{number}
Sets the width of the element.
CSS equivalent: width: {number}px;
Example usage:
.w-{number}p
Sets the width of the element as a percentage of its parent container's width.
CSS equivalent: width: {number}%;
Example usage:
Max Width Classes
.max-w-{number}
Sets the maximum width of the element.
CSS equivalent: max-width: {number}px;
Example usage:
.max-w-{number}p
Sets the maximum width of the element as a percentage of its parent container's width.
CSS equivalent: max-width: {number}%;
Example usage:
Min Width Classes
.min-w-{number}
Sets the minimum width of the element.
CSS equivalent: min-width: {number}px;
Example usage:
.min-w-{number}p
Sets the minimum width of the element as a percentage of its parent container's width.
CSS equivalent: min-width: {number}%;
Example usage:
Note: Replace {number}
with the desired numeric value in the class names to achieve the desired height or width.
Last updated