Utility classes
Utility classes — formerly helper classes to speed up your development process.
For faster mobile-friendly and responsive development, Bootstrap includes dozens of utility classes for showing, hiding, aligning, and spacing content.
Bootstrap utilitiesWe have added new utility classes in theme to speed up your development process. Checkout the list below:
Utility class name | Description | Available options |
---|---|---|
.grayscale | To apply grayscale filter on image or any section. On hover it will change back to normal | - |
.line height | To apply line height value 0 for remove line height | .lh-0 |
.opacity-# | Set opacity to elements by using this class | .opacity-1 |
.z-index-# | Set z-index | .z-index-0 |
.z-index-n# | Set z-index in negative | .z-index-n1 |
.h-### | Height utilities. You can also set different height in different Screen sizes by combining with Screen sizes classes h-md-400px |
.h-20px |
.w-### | Width utilities. You can also set different width in different Screen sizes by combining with Screen sizes classes w-md-400px |
.w-20px |
.icon-xs, .icon-sm, md, lg, xl and xxl | Set icon box with fixed height and width |
.icon-xs |
.rotate-# | Add rotation to element |
.rotate-10 |
.fill-# | fill color for element |
.fill-primary |