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 Techniques Display Modes Column Layout with Inline-Block

Sticky 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
Charles Gray
19,470 Points

html 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.

Hi thanks for replying.

But it didn't work as expected. Still displaying about 95% full. Any other ideas?

Laura Hill
Laura Hill
13,674 Points

Hi Nejc, Did you remember to do vertical-align: top; ?

Hello 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.