Professional Documents
Culture Documents
CSS Size
$(selector).height() Get the pixel height of the first selected element
$(selector).height(value) Set the height of all selected elements
$(selector).width() Get the pixel width of the first selected element
$(selector).width(value) Set the width of all selected elements
CSS Positioning
$(selector).offset() Get the position of the first selected element relative to the document
$(selector).offsetParent() Get the first parent element with an offset position
$(selector).position() Get the position of the first selected element relative to the parent element
$(selector).scrollTop() Get the scroll top offset of the first selected element
$(selector).scrollTop(value) Set the scroll top offset of all selected elements
$(selector).scrollLeft() Get the scroll left offset of the first selected element
$(selector).scrollLeft(value) Set the scroll left offset of all selected elements
w3schools.com/…/jquery_ref_css.asp?o… 1/1