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

Tony Shangkuan
Tony Shangkuan
7,200 Points

min-height:calc(100vh-89px); shows error in my style console and I dont know why?

This is the Creating a sticky footer link

So I tried the same code as instructed and I see error message in the console leaving the footer in the middle of the screen with whole lot of space left out at the bottom. I dont know why

@media (min-width: 769px){
  .wrap{
      min-height:calc(100vh-89px);
  }
}

Here is my snapshot

2 Answers

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,696 Points

It appears the Styles console wants a space before and after the minus sign.

.wrap {
    min-height: calc(100vh - 89px);
}
Tony Shangkuan
Tony Shangkuan
7,200 Points

You are right! Thank you so much, the issue has been resolved. I always thought the space does not matter in JS, but in this case it does!!!

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Treehouse Project Reviewer

Hey Tony Shangkuan ! 👋

Did you add the wrapper div with the class of wrap as seen at 1:00 in the video?

I see the same issue until I add that div in there html.