Difference between revisions of "Jquery element position"
From John Freier
(Created page with 'This section is all about how to position elements on a page.') |
|||
Line 1: | Line 1: | ||
This section is all about how to position elements on a page. | This section is all about how to position elements on a page. | ||
+ | |||
+ | |||
+ | == Get Position == | ||
+ | To get the position, jquery has a method on it with two attributes. | ||
+ | |||
+ | Left | ||
+ | $(this).position().left | ||
+ | |||
+ | Top | ||
+ | $(this).position().top |
Revision as of 16:07, 5 October 2011
This section is all about how to position elements on a page.
Get Position
To get the position, jquery has a method on it with two attributes.
Left
$(this).position().left
Top
$(this).position().top