In LESS I used following code to get the window\'s height.
@winheight:`$(window).height()`
What I\'m getting is a number, but when i add
try this
@winheight:`$(window).height()+"px"` height: @winheight;
because .height() returns only unit-less pixel value. alternatively use the following
@winheight:`$(window).css("height")` height: @winheight;
.css("height") returns a value with units