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 CSS Basics (2014) Getting Started with CSS External Style Sheets

Henry Miller
Henry Miller
7,945 Points

CSS not working: title not centering.

https://w.trhou.se/pbrd3b4sz9

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

if 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
Philip Condon
8,605 Points

It looks centered to me, can you provide a screenshot showing the issue?