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
- Spacing in Bootstrap with Examples
- Borders in bootstrap with examples
- Popovers in bootstrap with examples
- Containers in Bootstrap with examples
- Bootstrap Buttons with Examples
- Responsive images in Bootstrap with Examples
- Flexbox utilities in bootstrap with examples
- List group in bootstrap with examples
- Media Objects in Bootstrap with Examples
- Bootstrap | figure class with Examples
- Display Property in Bootstrap with Examples
- Bootstrap | Float utilities 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 firstname.lastname@example.org. 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.