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 trialNejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsSticky footer question
Hi there.
I'm following Guil and listening closely but the problem is when I set
html, body, .main-wrapper, .col {
height: 100%;
}
The second column doesn't take up 100% like the first one.
Any ideas why?
Thanks for helping.
I'm using Chrome.
2 Answers
Charles Gray
19,470 Pointshtml and body are the only things that need to be 100% in height. put the other two on a separate line and give them a min-height or max-height. The will change based on the content inside them.
Laura Hill
13,674 PointsHi Nejc, Did you remember to do vertical-align: top; ?
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsHello there Laura,
Thank you for replying. Will check, but I think I didn't set the vertical-align: top . I just have to find the workspace:)
Will let you know when I check.
Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsNejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsHi thanks for replying.
But it didn't work as expected. Still displaying about 95% full. Any other ideas?