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
Stu Parker
4,814 PointsWhy is my Clearfix Collapsing..?
Hi there guys,
After recently switching from Back End Development track, to Front End, i have begun apply what i have learnt to new page for my existing site. However, i have rum into a problem where my clearfix appears to stop working after my first media query(max-width : 768px). From this width and up, my 3 containers that carry the clearfix class, completely collapse to the top of the page. Is this a common quirk, and is there a fix??
Regards
Stu
1 Answer
Dan Weru
48,030 PointsHi, make sure that your clearfix code is not wrapped inside a media query. This way, it should apply to all your breakpoints.
Stu Parker
4,814 PointsStu Parker
4,814 Pointsseems it was a lagging server, and a mesua query not closed properly. thanks