Adjust the widths and heights of elements effortlessly to achieve the perfect layout for your project.
The Sizing utilities class group is designed to streamline the adjustment of element sizes. With its customizable and responsive structure, it aims to fulfill all your additional sizing needs in projects through simple class assignments.
In JTB_MD, there are two fundamental approaches for adjusting element dimensions:
.jtbW
and .jtbH
classbases for width and height adjustments respectively,.jtbWV
and .jtbHV
classbases for width and height adjustments respectivelyTo adjust the heights and widths of elements in your project relative to their parents, you can use the following utility classes of JTB_MD:
.jtbH-[ 0 | 5 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 ]
.jtbW-[ 0 | 5 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 ]
.jtbW
and .jtbH
classbases with .jtbWV
and .jtbHV
, respectively.
<!-- 55% width -->
<div class='jtbW-55'>...</div>
<!-- 55% height -->
<div class='jtbH-55'>...</div>
To cancel an assigned height or width for an element in JTB_MD, use the .jtbW-unset
and .jtbH-unset
classes.
<!-- Unset width -->
<div class='jtbW-unset' style='width:10%;'></div>
You can make your elements' sizes change basing on screen dimentions of clients. Activate this utility by adding the corresponding screen breakpoint (defined in Breakpoints seciton) at the end of the class with a hyphen (-):
Refer to the table below to understand which parts of the utility group can be used with screen breakers:
Part of group | Responsiveness | Example class |
---|---|---|
All classes | Active | .jtbW-55-xxl |
Copyright © 2024 JTBLabs - All rights reserved.