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 trialjason limmm
8,009 Pointsunable to center progress bar
here is my snapshot:https://w.trhou.se/9bo7pyy9xu
i can't seem to center the progress bar, i've tried flex text-align and the margin:0 auto but neither work
1 Answer
Steven Parker
231,275 PointsRemember that text-align is for flow elements. Div's are block elements.
But the bar is centered right now, both by the align-items: center;
in the flow item (.form), and by the auto margin in the "contents" div. You can remove either one of those and it will remain centered. I'm not sure why it seemed like it wasn't.
Now the heading over it is not centered, If you want that you could use text-align: center;
there since that's a flow element.