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 trialMatt McNally
516 PointsHeader and Footer not quite right.
Either my header or navigation is not quite centered, they look slightly out of sync with each other. Also, my footer is not centered and still appears to the left. I have been following along with the videos and can't see where the code is any different. Any help would be greatly appreciated.
3 Answers
Olga Kireeva
9,609 PointsHi Matt, it would be easy to find a problem if you have posted html code also. Why do you use text-align-last instead of just text-align? As far as I know, text-align-last property only works when text-align property set to justify. You can also try to set the width for the footer and right/left margin to auto.
Kester Browne
24,414 PointsWhy did you float the header?
If you float something, you have to clear the float.
Matt McNally
516 PointsFigured out the nav problem was just some typos. Getting rid of the "-last" and using just text-align did the trick and centered my footer, thanks for the help!
Matt McNally
516 PointsMatt McNally
516 Points'