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 trialHenry Miller
7,945 PointsCSS not working: title not centering.
I'm not sure what is happening but everything looks good to me. Maybe it's an html issue. I'm not sure.
2 Answers
Jacob Mishkin
23,118 Pointsif you are not adding any divs to the rest of the mark up your CSS should look like this:
Header {
text-align: center;
background-color: orange;
}
Just move the style CSS text-align:center;
from the body element to the header element. you should be good to go!
Philip Condon
8,605 PointsIt looks centered to me, can you provide a screenshot showing the issue?