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 CSS Layout Basics Getting Started with CSS Layout Creating a Sticky Footer

The Calc function doesn't apply to all browser sizes...

Resizing the browser down to the Mobile Version size, the footer doesn't stick using this Calc Function. This should have been shown IN the video, since we are targeting mobile sizes. Resizing down to a mobile size, the footer jumps back up from the bottom.

1 Answer

Tomas Novy
Tomas Novy
9,421 Points

Hi Kevin,

It is because Guil created new css rule that targets .wrap { } under media query with min-width 769px. If you like to add this rule in the mobile view also, feel free to copy that rule and add it to Layout Containers of your css file.

ywang04
ywang04
6,762 Points

Thanks you so much. :)

Oleg Mogytych
Oleg Mogytych
10,684 Points

Was on my way to post this issue as well with solution just to replace outside of media query :) In this case, there is no reason to copy and keep two similar code's parts in CSS file, correct? So it's not copying, it's replacing