Having trouble with using CSS to make an element 100% minus pixels in jQuery and Chrome devtools,
The following code is not functioning correctly:
$(".mydiv").css({height: "calc(100%-50px)"});
This approach did not work in Chrome devtools, even though it was intended for responsive window resizing.
However, the code works fine when applied directly in a CSS stylesheet:
.mydiv {
height: calc(100%-50px);
}