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

James Jung
4,919 PointsBothering me to no end
So after we set margins and everything, the video shows the instructor resizing the browser and we see H1 and H2 always staying centered relative to the browser size. Which CSS property allows this? is this being defined in normalized.css?
4 Answers

Sean T. Unwin
28,688 PointsIs text-align: center
what you're looking for?

James Jung
4,919 Pointsah yes, sorry sometimes I over think things and forgot that we set an id and the id in css was aligned centered. I need to learn to take a step back and just think things through. Appreciate your help.

James Barnett
39,199 PointsI'm guessing you are thinking of margin: auto

Sean T. Unwin
28,688 PointsGood call. I almost added that to my answer as well. ... Not sure why I didn't.