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 trialBill Graham
7,423 Points"center-block" no longer exists—use "d-block m-x-auto".
"centre-block" has been removed from the latest bootstrap 4 alpha. From my reading of the bootstrap utilities documentation, you now need to use a combination of "d-block" (to make the button a block-level element), and "m-x-auto" to set left and right margins to auto, to recreate the "center-block" class.
Evan Goodwin
Courses Plus Student 22,260 PointsChanged syntax again - now "d-block mx-auto"
7 Answers
Carlos Enrique Castañeda Gutiérrez
13,886 PointsThe latest alpha "October 2016" is mx-auto to center the button
marshall carter
11,568 PointsThank you very much!
Lewis Marshall
22,673 PointsThanks I was looking for this!
nagamani palamuthi
6,160 PointsHi thanks so much for the above info, but mx-auto is still not working in my code. did something change again?
osman muuse
34 PointsWhy can't you just text-sm-center it or pull-sm-right-offset What's the different? Very Confused!!
nagamani palamuthi
6,160 Pointsare you talking about centering the button?
Paula Mourad
5,154 PointsUse mx-auto. Not m-x-auto.
Lucas Andrews
4,919 PointsLucas Andrews
4,919 PointsThanks, Bill!