As the name suggests sizing means to adjust the size of an element relative to its parent with the help of height and width utilities(in px or in %). Width and height utilities are generated from the $sizes Sass map in _variables.scss.
By default Bootstrap sizing includes supports for 25%, 50%, 75% and 100%. You can add specific sizes if you need any size other than this.
Below are some examples explaining sizing in BootStrap and the classes available:
We can also adjust the size of input elements in bootstrap by the use of classes like .input-lg and .input-sm for adjusting heights and .col-lg* and .col-sm* for adjusting width.
- BootStrap | Positioning an element with Examples
- CSS | box-sizing Property
- Containers in Bootstrap with examples
- Popovers in bootstrap with examples
- Spacing in Bootstrap with Examples
- Borders in bootstrap with examples
- Bootstrap Buttons with Examples
- List group in bootstrap with examples
- Bootstrap | figure class with Examples
- Responsive images in Bootstrap with Examples
- Visibility of elements in bootstrap with Examples
- Bootstrap | Float utilities with Examples
- Colors and gradients in bootstrap with examples
- Display Property in Bootstrap with Examples
- Media Objects in Bootstrap with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.