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