Bootstrap 4's use of the CSS flexbox module greatly increases the flexibility of layout. Rows are flex containers by default so there's no longer any need to clear floats when columns in the same row are of different lengths. In this video, learn how simple it is to create equally distributed columns with the addition of a class.
- [Instructor] Use of the CSS flexbox module…is one of the most important changes in Bootstrap 4.…It not only avoids the need to clear floats,…it also offers other possibilities…such as equally distributed columns.…I've added some dummy text to each…of the six columns in the row that we created…in the previous video.…On an extra small device, the columns stretch…the full width of the row…and they're stacked vertically.…The great advantage of Bootstrap using flexbox…becomes apparent when I click…the visual media queries bar to resize…the document window for the breakpoint…for small devices.…
Even though the text is of varying lengths,…the columns are laid out two abreast.…In Bootstrap 3 which uses floats for layout,…this third column would be stuck below the second one…because it would float up into this empty space,…and the length of the first column…would prevent it from moving all the way…across to the left.…In Bootstrap 3, you would need to insert…an extra div to clear the float,…but that's not necessary in Bootstrap 4…
Author
Released
12/21/2018- Defining a layout grid
- Inserting and modifying a navigation bar
- Adding a container for the page content
- Inserting a responsive image
- Resizing and duplicating columns
- Inserting fixed-size images
- Inserting cards
- Editing a carousel
Skill Level Intermediate
Duration
Views
Related Courses
-
Design the Web: Responsive SVG Images
with Chris Converse22m 46s Beginner -
Bootstrap 4 Essential Training
with Ray Villalobos6h 46m Beginner -
Bootstrap 4 Layouts: Responsive Single-Page Design
with Ray Villalobos3h 13m Intermediate -
Designing Websites from Photoshop to Dreamweaver
with Sue Jenkins2h 27m Intermediate
-
Introduction
-
What you should know1m 46s
-
1. Get Started
-
Set the Bootstrap version6m 26s
-
Understand the layout grid3m 52s
-
Define the layout grid5m 9s
-
-
2. Create the Site Navigation
-
Insert a navigation bar3m 34s
-
Edit the links6m 25s
-
Customize the color scheme6m 14s
-
-
3. Add a Hero Image
-
Insert a row and columns5m 46s
-
Insert a responsive image4m 21s
-
Remove gaps around the image5m 43s
-
4. Work with Rows and Columns
-
Resize and duplicate columns5m 29s
-
Use semantic markup3m 41s
-
Paste formatted text4m 50s
-
Insert fixed-size images5m 15s
-
Paste into an empty column6m 14s
-
Style the feature section3m 54s
-
-
5. Edit Bootstrap Components
-
Insert cards4m 46s
-
Add content to cards5m 26s
-
How a carousel is structured5m 13s
-
Edit a carousel4m 51s
-
-
6. Complete the Design
-
Add the footer3m 13s
-
Hide elements3m 8s
-
Add extra pages7m 15s
-
-
Conclusion
-
Next steps1m 55s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Flex layout: Equally distributed columns