like so? http://jsfiddle.net/honk1/MG4hw/4/
here is the stuff i changed:
var startOffset = $(this).position();
$('.start_options').css({
position: 'fixed',
top: startOffset.top + 8,
left: $("#some_content").width() - $('.start_options').width()
});
plus i included a very bad style of css reset, *, so the elements dont have any default values. its evil, but it works for the example.
* {
margin: 0;
padding: 0;
}
EDIT
here is another fiddle, that also reacts on scroll. check the functions, jQuery.bind() is depreciated since v1.7 in favor to jQuery.on(). plus i used the "hover" function as well, just to show you another method on how to bind mouse events.. plus i changed the order of the functions, took some out of the on handler and put them into the ready handler..
http://jsfiddle.net/honk1/MG4hw/10/
and why are you using jQuery 1.9.1, when there exitsts 1.11.0 or even 2.1 (2.1. is not compatible with some older versions of ie, i guess..)