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

Bothering 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
Sean T. Unwin
28,690 Points

Is text-align: center what you're looking for?

ah 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
James Barnett
39,199 Points

I'm guessing you are thinking of margin: auto

Sean T. Unwin
Sean T. Unwin
28,690 Points

Good call. I almost added that to my answer as well. ... Not sure why I didn't.