flex
helps us manage the layout, alignment, and size of the columns, navbar, and components making the components very responsive on a website. It removes the stress of using positions or floats and still keeps the site layout structure seamlessly responsive.
Line 23: We have a div
element with the class
attribute of d-flex
. This class applies flex styling to the div
element and every other element it wraps. Other values in the class attribute of the div
add styling to the flex but are not determinants for the Bootstrap flex.
Line 24 to 26: These are the contents of the d-flex
class
attribute. They add optional styling like colors.
Line 27: We close the div
with the d-flex
class attribute.