Source Code:
Result:
Position of this paragraph (relative to its parent element) is
x
top and
x
left.
Get position
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself