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 trialTony Shangkuan
7,200 Pointsmin-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);
}
}
2 Answers
Rich Donnellan
Treehouse Moderator 27,696 PointsIt appears the Styles console wants a space before and after the minus sign.
.wrap {
min-height: calc(100vh - 89px);
}
Travis Alstrand
Treehouse Project ReviewerHey 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.
Tony Shangkuan
7,200 PointsYes I did
Tony Shangkuan
7,200 PointsTony Shangkuan
7,200 PointsYou 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!!!
Rich Donnellan
Treehouse Moderator 27,696 PointsRich Donnellan
Treehouse Moderator 27,696 PointsJS no, but CSS, yes! Picky browsers!