Introduction to Bootstrap | Part 2 | Build Your Own Static Website | Cheat Sheet
Flexbox Properties 1. Flexbox Container The Bootstrap class name d-flex defines a Flexbox Container. The direct HTML elements in the Flexbox Container are called flex items . <div class="d-flex"> <div> <h1>Tourism</h1> <p>Plan your trip.</p> <button>Get Started</button> </div> </div> The HTML container element with the class="d-flex" is a Flexbox Container. The HTML container element div in Flexbox Container is a flex item. Because it is directly inside the Flexbox Container. The HTML main heading, paragraph, and button elements are not flex items. Because these elements are not directly inside the Flexbox Container. Note:- Wrapping HTML elements in the Flexbox Container is mandatory to apply other flex properties. 2. Flex Direction The Flex Direction specifies the direction of the flex items in the Flexbox Container. ...