I have a 9000px horizontal div container and I want to find it's middle part.
I have this code but its getting the whole width of the window not the container div.
$(document).ready(function(){
scrollTo(($(document).width() - $(window).width()) / 2, 0);
});
Here's a jsFiddle of the whole code