If you want to play with an element using jQuery, Your requirement is to measure dimension of the same. You can refer following example:
// get window height var winHeight = $(window).height(); // set element height $(“#main”).height(winHeight); //.width() – element //.innerWidth() – .width() + padding //.outerWidth() – .innerWidth() + border //.outerWidth(true) – including margin
If you have any questions, Please feel free to ask.
—
Anoop kumar sharma
0 Comments.