Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

bootstrap 4
flex
communitycreator

How to use the Bootstrap 4 flex

Chinweuba Elijah Azubuike

Overview

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.

Functionality of bootstrap 4 flex

Explanation

  • 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.

RELATED TAGS

bootstrap 4
flex
communitycreator

CONTRIBUTOR

Chinweuba Elijah Azubuike
RELATED COURSES

View all Courses

Keep Exploring