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

Styling breakpoints.

Hey all. After completing the course How to Make a Website I still have one unfixed error. The CSS styling breakpoints between mobile devices and desktops did not work and I had to comment them out. Feel free to inspect at willcookpdx.com. Thanks!

Hi William,

Had a look at your site - can you highlight the exact issue you have?

I can see that your header div loses it's margin-bottom on smaller screens, which pushes the wrapper div right up.

All the best,

Ede

2 Answers

Looks like your nav collapsed due to the float. A few spots on your page might benefit from a clearfix being added to their parents.

http://alistapart.com/article/css-floats-101#section6 http://nicolasgallagher.com/micro-clearfix-hack/

Hey all, this is the Responsive CSS styling that had to be commented out. The site as it stands is the "mobile" version - /nav { background: none; float: right; font-size: 1.125em; margin-right: 5%; text-align: right; width: 45%; }/

/#logo { float: left; margin-left: 5%; text-align: left; width: 45%; }/