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 trialmicheala leaver
1,313 PointsMy header isn't centered like my navigation links, why?
I'm following along and I really don't know why but my heading isn't centered but my navigation links are. Can someone please help? I'm so confused on what i did wrong.
2 Answers
Emmanuel Ouzan
4,107 PointsHello,
I had just few hours ago a problem that the work space wasn't working well and didn't show my code changes.
Try closing your browser and open it again and try to run it now. (You can try with an other browser to really be sure that its not a work space problem)
If the problem still exist be sure that you have the code written in your "main.css" file:
#logo {
text-align: center;
margin: 0;
}
And in the "index.html" make sure you have the "id" of the logo that we are referring to at the css file:
<a href="index.html" id="logo">
<h1>YourName</h1>
<h2>Web designer</h2>
</a>
I hope that it will help.
Emmanuel.
micheala leaver
1,313 PointsThanks! It helped a lot. Now its all centered and the images are all in the right spots too.
Kristopher Van Sant
Courses Plus Student 18,830 PointsKristopher Van Sant
Courses Plus Student 18,830 PointsCan you please post your code or take a snapshot of your workspaces? This way we can see the code and help find where the issue is.