1. Reference For jQuery CSS Methods
This section provides a comprehensive guide to jQuery's CSS manipulation methods. These powerful functions enable you to dynamically control the visual presentation of your web pages by setting and retrieving CSS properties, and by obtaining information about element dimensions and positioning.
Following is the complete alphabetical list of jQuery CSS methods.
Method | Description |
css() | Sets or returns one or more style properties for selected elements |
height() | Sets or returns the height of selected elements |
innerHeight() | Returns the height of an element (includes padding, but not border) |
innerWidth() | Returns the width of an element (includes padding, but not border) |
offset() | Sets or returns the offset coordinates for the selected elements (relative to the document) |
offsetParent() | Returns the first positioned parent element |
outerHeight() | Returns the height of an element (includes padding and border) |
outerWidth() | Returns the width of an element (includes padding and border) |
position() | Returns the position (relative to the parent element) of an element |
scrollLeft() | Sets or returns the horizontal scrollbar position of selected elements |
scrollTop() | Sets or returns the vertical scrollbar position of selected elements |
width() | Sets or returns the width of selected elements |