Im trying to build a horizontal website which is at 16000px at the moment, using this template
http://tympanus.net/Tutorials/WebsiteScrolling/
the website has four sections 4000px wide each, I am trying to achieve a div that will be centred in the browsers viewport at each section.
Vertically, 50% works, but horizontally 50% would be 2000px into the page.
does anyone know anything that would work?
I have found a script for centring my #verycentre Div on the first page, it isnt 50% of 4000px, its of the browser window and looks great.
The problem I am having now is that I need a centred window div at each section anchor.
as the page scrolls across and hits each section, im trying to achieve a resizeable #verycentre Div for each section.
The code I am using at the moment is posted below and works perfectly for the first centred div in section 1.
I think the problem might be that the function call is made document.ready
and at that time there is only one #verycentred div in the window, but am not 100% sure.
how can I make all of the #verycentred Div's at each anchor point be centred/resieable?
thanks