jQuery offset

A quick note to self, when using $().offset you get a different result than if you use Element.offsetTop. They should be the same but they are not. I just realized this and hadn’t thought about it before. My context? I wanted to scroll to an element inside another element that had a fixed height. Scroll […]

Fortsätt läsa