You are on page 1of 1

24-04-2010 jQuery CSS Manipulation Reference

From http://www.w3schools.com (Copyright Refsnes Data)

jQuery CSS Manipulation Reference


« Previous Next Chapter »

jQuery CSS Manipulation Functions


CSS Properties Description
$(selector).css(name) Get the style property value of the first selected element
$(selector).css(name,value) Set the value of one style property for all selected elements
$(selector).css({properties}) Set multiple style properties for all selected elements

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

(selector) jQuery Element Selector Syntax

« Previous Next Chapter »

From http://www.w3schools.com (Copyright Refsnes Data)

w3schools.com/…/jquery_ref_css.asp?o… 1/1

You might also like