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) Using Bootstrap Components Adding Buttons and Button Groups

Why doesn't my blocks center?

I have two issues with my page:

  1. My buttons does not center.
  2. When I do the small size mu navbar and Full Stack Conf collapse together.

How can I fix this problems?

https://w.trhou.se/ta5ehiwtpk

4 Answers

Kent ร…svang
Kent ร…svang
18,823 Points

You could just add the class "text-center" to your "btn-group"-element.

Thanks I fix the box center but I need help of the collapse of the text Full Stack Conf and the nav bar.

Emin Grbo
Emin Grbo
13,092 Points

If 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
seal-mask
.a{fill-rule:evenodd;}techdegree
Learning coding
Front End Web Development Techdegree Student 9,937 Points

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