Looking at the source code of Bootstrap v4.1, there are no utility classes included that specifically target the flex-basis value.

Searching through the file, there are only 12 occurances of the word flex-basis:

  • 5 times to set flex-basis to 0 for some of the col-* classes (e.g. line 625).
  • 7 times for styling specific navbar related classes (e.g. line 4268).

This also seem to remain the case in the latest versions of Bootstrap at the time of this writing:

  • Bootstrap v4.5.3
  • Bootstrap v5.0.0-alpha3
Answer from Matt on Stack Overflow
🌐
Bootstrap
getbootstrap.com › docs › 4.1 › utilities › flex
Flex · Bootstrap
<div class="d-inline-flex p-2 bd-highlight">I'm an inline flexbox container!</div>
🌐
Bootstrap
getbootstrap.com › docs › 5.0 › utilities › flex
Flex · Bootstrap v5.0
<div class="d-inline-flex p-2 bd-highlight">I'm an inline flexbox container!</div>
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › flex-basis
flex-basis - CSS - MDN Web Docs
If the flex container's size is indefinite, the used value for flex-basis is content. auto uses the value of the width in horizontal writing mode, and the value of the height in vertical writing mode; when the corresponding value is also auto, the content value is used instead. ... fit-content sets the maximum possible size of a containing block's content area, bounded by the min-content and max-content values, and calculated based on the content of the current element. flex-basis = content | <'width'> <width> = auto | <length-percentage [0,∞]> | min-content | max-content | fit-content( <len
🌐
GitHub
github.com › twbs › bootstrap › issues › 27772
Flex basis · Issue #27772 · twbs/bootstrap
December 5, 2018 - I thinks You can add more flex utilities. Here is for flex-basis. What does it do? It stretches div to full width. It could be useful (I needed it as in screenshots). There could be also variations like 25, 50, 75 (as in w-x) .flex-basis...
Author   piernik
🌐
Netlify
cscnotes.netlify.app › bootstrap flex
Introduction to Bootstrap Flex
We've created a Flex container that's a row, centered horizontally and vertically, and contains three Flex items with different grow, shrink, and basis values. The first item will grow to fill the available space, the second item will shrink if necessary, and the third item will have a fixed width of 50 pixels. Bootstrap Flex
🌐
Medium
medium.com › afosto › bootstrap-v4-explained-flexing-with-utilities-4d1d43e196f9
Bootstrap v4 explained: Flexing with utilities | by Gijs Boddeus | Afosto | Medium
September 4, 2019 - If you have two flex items next to each other with this class, they will be equal in width as they both take up as much space as they can. To do this we use the shorthand property flex. This is a shorthand to declare flex-grow, flex-shrink and flex-basis, in that order.
Find elsewhere
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Properties › flex-basis
flex-basis - CSS | MDN - Mozilla
January 16, 2026 - If the flex container's size is indefinite, the used value for flex-basis is content. auto uses the value of the width in horizontal writing mode, and the value of the height in vertical writing mode; when the corresponding value is also auto, the content value is used instead. ... fit-content sets the maximum possible size of a containing block's content area, bounded by the min-content and max-content values, and calculated based on the content of the current element. flex-basis = content | <'width'> <width> = auto | <length-percentage [0,∞]> | min-content | max-content | fit-content( <len
🌐
Zero To Mastery
zerotomastery.io › blog › bootstrap-flexbox
Beginners Guide To Flexbox With Bootstrap | Zero To Mastery
March 25, 2024 - Learn how to use Flexbox features for responsive design inside of Bootstrap. I've also included some code examples to show you how easy it is to start using!
🌐
Bootstrap
getbootstrap.com › docs › 4.0 › layout › grid
Grid system · Bootstrap
Skip to main content There's a newer version of Bootstrap! ... Use our powerful mobile-first flexbox grid to build layouts of all shapes and sizes thanks to a twelve column system, five default responsive tiers, Sass variables and mixins, and dozens of predefined classes.
🌐
W3Schools
w3schools.com › cssref › css3_pr_flex-basis.php
CSS flex-basis property
The flex-basis property specifies the initial length of a flexible item.
🌐
CSS-Tricks
css-tricks.com › almanac › properties › f › flex-basis
flex-basis | CSS-Tricks
September 30, 2022 - The flex-basis property is a sub-property of the Flexible Box Layout module. It specifies the initial size of the flex item, before any available space is
🌐
W3Schools
w3schools.com › bootstrap5 › bootstrap_flex.php
Bootstrap 5 Flex
Text Colors Background Colors BS5 Tables BS5 Images BS5 Jumbotron BS5 Alerts BS5 Buttons BS5 Button Groups BS5 Badges BS5 Progress Bars BS5 Spinners BS5 Pagination BS5 List Groups BS5 Cards BS5 Dropdowns BS5 Collapse BS5 Navs BS5 Navbar BS5 Carousel BS5 Modal BS5 Tooltip BS5 Popover BS5 Toast BS5 Scrollspy BS5 Offcanvas BS5 Utilities BS5 Dark Mode BS5 Flex · BS5 Forms BS5 Select Menus BS5 Checks and Radios BS5 Range BS5 Input Groups BS5 Floating Labels BS5 Form Validation · BS5 Grid System BS5 Stacked/Horizontal BS5 Grid XSmall BS5 Grid Small BS5 Grid Medium BS5 Grid Large BS5 Grid XLarge BS5 Grid XXL BS5 Grid Examples · BS5 Basic Template BS5 Editor BS5 Exercises BS5 Quiz BS5 Syllabus BS5 Study Plan BS5 Interview Prep BS5 Certificate ... The biggest difference between Bootstrap 3 and Bootstrap 4 & 5 is that Bootstrap 5 now uses flexbox, instead of floats, to handle the layout.
🌐
Bootstrap Creative
bootstrapcreative.com › flexbox-tutorial
[Bootstrap Flex Tutorial] Learn How to Take Command of CSS Flexbox
November 23, 2022 - Flexbox is really powerful and it’s fundamental to understanding how the Bootstrap 4 grid works. The main advantage flexbox has over float based layouts is re-ording items.
🌐
Reintech
reintech.io › blog › bootstrap-5-flexbox-mastering-layouts-and-alignment
Bootstrap 5 Flexbox: Mastering Layouts and Alignment | Reintech media
March 5, 2024 - Solution: Set explicit widths or flex-basis values on items. Without them, items have no reason to wrap. Problem: Vertical centering doesn't work. Solution: Ensure the flex container has a defined height. You can't center vertically in a container with no vertical space to center within. Flexbox isn't always the answer. Use CSS Grid (Bootstrap 5's grid system) when:
🌐
TutorialsPoint
tutorialspoint.com › home › bootstrap4 › bootstrap 4 flex
Bootstrap 4 - Flex
May 8, 1971 - The alignment of flex items (such as start, end, center, between and around) can be changed on the main axis (x-axis to start) of the flexbox containers by using justify-content utility.
🌐
W3Schools
w3schools.com › bootstrap4 › bootstrap_flex.asp
Bootstrap 4 Flex
BS4 Basic Template BS4 Editor BS4 ... Modal JS Popover JS Scrollspy JS Tab JS Toasts JS Tooltip ... Use flex classes to control the layout of Bootstrap 4 components....