jquery - calc(pecentage) to calc(pixel) -
i wanted use calc(100%-100px)
didn't work in demo height accepting in pixels how convert percentage value pixels.
the following give height:
$(window).height(); // returns height of browser viewport $(document).height(); // returns height of html document
to set values
$(window).height(800); $(document).height(800);
or use old javascript
window.resizeto(800, 600);
here jsfiddle asked in comments.
Comments
Post a Comment