Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Bootstrap 4 Basics (Retired) Getting to Know Bootstrap 4 Enhancing the Page

Louis Samuel
Louis Samuel
12,529 Points

Spacing - margin classes m-t-1 / m-b-1 not working at all. Can anyone help ?!?!

Checked against documentation etc., correct bs version......

I can't work it out...... Can anyone help?!?!?!

Ethan Ede
Ethan Ede
11,575 Points

Hi Louis, I had this same issue. After looking into it, I found a few changes from the current version of Bootstrap 4 beta and the code used in the video. Try "mt-1" vs "m-t-1" and follow that pattern with all margin and padding classes. The others I noticed related to the push, pull, and float elements, all of which use slightly tweaked class names from those prior. Refer to the documentation at getbootstrap.com for more info.

Also, I reserve the right to be incorrect here - if so, your comments are appreciated.

Hope this helps! Code on...

Louis Samuel
Louis Samuel
12,529 Points

Thanks Ethan!

I've changed the class names as you suggested and spacing now works fine.

I was looking at the wrong documentation......

1 Answer

Louis Samuel
Louis Samuel
12,529 Points

See Ethan's response above