Home Ask Login Register

Developers Planet

Your answer is one click away!

Ruben February 2016

LESS, compile issues

I'm using Visual Studio 2012 and Web Essential 2012 and Less generates the css not as, as expected


     max-height: calc(100vh - 200px)

In the style.css it's generates something like this

      max-height: calc(-100vh);

Any ideas?


Luca Detomi February 2016

You have to use "escape" function as suggested in this answer to a similar question.

     max-height: calc(100vh ~"-" 200px);

Post Status

Asked in February 2016
Viewed 3,870 times
Voted 10
Answered 1 times


Leave an answer

Quote of the day: live life