My script here needs a little work on the positioning of the sentence. If you click on any of the choices, the sentence should slide down to that height. I’m trying to use .position() to obtain a relative position (as the doc says, relative to the offset parent, which is why I’m writing this thread).
Obviously, the .position() is a little off right now because it seem to think it’s offset parent is the document itself and the jQuery doc didn’t mention anything about setting the offset parent. Any inputs are greatly appreciated.
PS: I’m currently using position: relative on the sentence, which are 2 <p> tags.
on css add
position: relative;to the parent element/container