Robert Granlund
asked on
javascript breaking css
I am using the following to hold a menu in place vertically but not horizontally:
It works purfect, unless I maximize my screen and scroll down then the three divs land 100% justified left on the edge of my screen.
I'm using this example http://jsfiddle.net/Q4dWz/ and it breaks when I use it.
<script type='text/javascript'>
$(window).scroll(function(){
var $win = $(window);
$('#widget_sp_image-53').css('left', 0 -$win.scrollLeft());
$('#nav_menu-6').css('left', 0 -$win.scrollLeft());
$('#nav_menu-5').css('left', 0 -$win.scrollLeft());
});
</script>
It works purfect, unless I maximize my screen and scroll down then the three divs land 100% justified left on the edge of my screen.
I'm using this example http://jsfiddle.net/Q4dWz/ and it breaks when I use it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This is in Firefox 6. Which browser do you use? Do you use the example in another context, then post the context.