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 trialIsaac Takushi
15,159 Pointsmain-footer expands to full height of column container on screen sizes less than 769px
Hi all!
When I reduce my window size to <769px, the main-footer expands to the full height of the column container and all of the content has the background color #d9e4ea.
I'm pretty sure I've applied the clearfix classes correctly to the header and column divs. I also tried adding clearfix to main-footer to no avail. What am I missing?
Here's my code: https://w.trhou.se/2iy0dywu6z
Thanks!
1 Answer
Leandro Botella Penalva
17,618 PointsHi Isaac,
Your clearfix class rule on your CSS is inside a media selector. In this case is inside the first media selector, that by its properties (min-width: 769px) requires 769px so it won't apply the clearfix unless your window size is greater than that.
To fix your issue move the clearfix css class rule outside the media selector.
Isaac Takushi
15,159 PointsIsaac Takushi
15,159 PointsThanks, Leandro! That makes sense.