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 trialzachariemorrow
487 PointsMy 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
Tab Dansby
3,683 PointsCan you post all your code for that page?
Jorge Valerio
Front End Web Development Techdegree Graduate 24,696 Pointsit will be so much easier if you post your code, but adding float property will push your selector to either left or right.
Keith Kelly
21,326 PointsThe issue might be that you have put a semi colon after the width property instead of a colon.
Bob Beaumont
1,317 PointsHi 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.
zachariemorrow
487 PointsThanks you all so much its amazing how one little mess up could make a website explode!