The problem is, you've set the
height
of the footer element to
200px
.
When the columns stack, their combined height increases beyond
200px
. The background stops at
200px
, because that's the height of the footer element. But the content overflows the footer element, because you haven't told it not to.
Example 1 - height[
^]
To fix it, you can either use a media query to change the height when the columns stack, or replace the height property with
min-height
.
Example 2 - min-height[
^]