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) Getting to Know Bootstrap 4 Creating a Simple Page

Toshiaki Kanayama
Toshiaki Kanayama
36 Points

About the centering

I think the last part of this video: class="col-lg-offset-3" , is no longer in life. Please check it.

2 Answers

Hi there,

It looks like you're right - the latest Bootstrap 4 no longer uses the older style of column offsetting, since they're now using flexbox. If you're trying to follow along, here's how it's done now.

This worked for me to center the form in the latest version of Bootstrap (4.0.0.0 beta)when following along with this video:

<div class="col-lg-6 ml-lg-auto mr-lg-auto">