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
Dwayne DeJulio
987 Pointshelp with hidden footer!
Hi everyone, I'm working on a project and I'm trying to incorporate a hidden footer.. I have everything mainly lined out I think except the footer is making my header /semi disappear.. could anyone take a look at it for me and possibly see what you think? Thank you all!
Here is the codepen what the header is supposed to look like. http://cdpn.io/cBAkl
And here is the codepen with what it does when I add the footer.http://codepen.io/anon/pen/unxCt
Thanks again everyone!
2 Answers
Jacob Miller
12,466 PointsLooks to me like your html in the first codepen doesn't match the other (besides the footer), and the same with your CSS. I would place the <footer> tag outside your content div, right before the closing body tag.
In your CSS, the float property only takes left or right as values, so float: bottom won't position your footer at the bottom. Your CSS should look something like this if you want the footer to stay at the bottom:
.footer {
position: fixed;
bottom: 0;
width: 100%;
height: ---;
}
Dwayne DeJulio
987 PointsThank you for your help Jacob!