how to find the vertical distance from top in px of an element using jQuery February 9, 2023 by Tarik Use .offset() to get the distance between an element and the top of the document: $("li.test").offset().top