Bootstrap Sizing
Bootstrap provides a variety of classes that can be used to control the size of elements such as buttons, headings, images, and more.
Syntax
To use Bootstrap's sizing classes, simply add the class name to the HTML element you want to resize. Here are some of the available classes:
.h1
,.h2
,.h3
,.h4
,.h5
,.h6
: these classes can be used to resize heading tags..display-1
,.display-2
,.display-3
,.display-4
: these classes can be used to create large headings or display text..lead
: this class can be used to increase the size of paragraph text..btn-lg
,.btn-sm
: these classes can be used to create large or small buttons.- Width and height utilities are generated from the utility API in _utilities.scss. Includes support for 25%, 50%, 75%, 100%, and auto by default.