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 How to Make a Website Styling Web Pages and Navigation Build Navigation with Unordered Lists

My website exploded!

I did what nick said but, my h1, h2, and nav links moved to the left side of the page and got very small. Can you tell me what I did wrong?

header { float: left; margin: 0 0 30px 0; padding: 15px 0 0 0; width; 100%; }

5 Answers

Can you post all your code for that page?

Keith Kelly
Keith Kelly
21,326 Points

The issue might be that you have put a semi colon after the width property instead of a colon.

Hi zachariemorrow, I'm on the same exercise and it is working fine for me. The only difference in your code and mine is your padding is set to 15px. and mine is 5px.

header {
  float: left;
  margin: 0 0 30px 0;
  padding: 5px 0 0 0;
  width: 100%;
}

Let me know if that helped. thanks bob.

Thanks you all so much its amazing how one little mess up could make a website explode!