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 trialOscar Camacho
Full Stack JavaScript Techdegree Student 5,428 PointsWhy doesn't my blocks center?
I have two issues with my page:
- My buttons does not center.
- When I do the small size mu navbar and Full Stack Conf collapse together.
How can I fix this problems?
4 Answers
Kent ร svang
18,823 PointsYou could just add the class "text-center" to your "btn-group"-element.
Oscar Camacho
Full Stack JavaScript Techdegree Student 5,428 PointsThanks I fix the box center but I need help of the collapse of the text Full Stack Conf and the nav bar.
Emin Grbo
13,092 PointsIf you are talking about the Jumbotron, then "text-center" should help like Kent said. Some syntax was changed so it is hard to nail the right one :)
Learning coding
Front End Web Development Techdegree Student 9,937 PointsText-center still doesn't work.
I solved it by bringing the btn-group into an element right above the btn-group wich was allready centered.with text-align:center. That brings the question why text-align didn't didn't work on the btn-group.