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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -