Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Bootstrap 4 Basics (Retired) Responsive Layouts with the Bootstrap Grid Column Ordering and Offsetting

Nouh Ahmed
Nouh Ahmed
7,085 Points

Bootstrap 4 is not working

I run the workspace for this lesson(Column Ordering) and i did not get the expected result. What is the problem

Michal Janek
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Michal Janek
Front End Web Development Techdegree Graduate 30,654 Points

Can you be more specific? You mean you wrote everything what the video suggested and it did not work for you? If that is the case then be aware that Bootstrap 4 is (or at least was) at alpha stage in development that means a lot of class names are no longer the same, outdated. The concept is still the same you just have to open the documentation webpage yourself and look the class names for yourself.

1 Answer

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Sorry Nouh Ahmed

Bootstrap 4 has changed since this video was shot. In the alpha v6, the class names for pushing, pulling and offsetting columns has changed.

Pushing and pulling columns

Instead of col-lg-push-4 to push a column over 4 columns to the right you use push-lg-4. Likewise to pull a column to the left 4 columns use push-lg-4.

For this video, to push the first column 4 columns to the right and place it in the middle (on large breakpoints), use this code:

<div class="col-md-4 push-lg-4">

To pull the second column over 4 columns to the left side (on large breakpoints):

<div class="col-md-4 pull-lg-4">
Offsetting columns

The classnames for offsetting columns has also changed. Instead of col-xl-offset-2 to move a column 2 units over on extra large screens you use offset-xl-2.

For this video, to offset the signup form at the bottom of the page so that it aligns with the right edge on extra large screens, use this code:

<div class="col-md-6 col-xl-5 offset-xl-2">

You can read more about the proper class names here: