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

*:after

Is it just me or is there something missing in the DOM API’s when you cannot access things like ”:after” and ”:before” from javascript? /M

Fortsätt läsa