Currently, I am working on developing a horizontal website that spans 16000px using a specific template that can be found at the following link: http://tympanus.net/Tutorials/WebsiteScrolling/
The website is divided into four sections, each 4000px wide. My goal is to create a centered div within the browser's viewport for each section.
Vertically, achieving 50% alignment is not an issue. However, horizontally, 50% would place the div at 2000px into the page.
Does anyone have any suggestions on how to make this work?
I have managed to center my #verycentre div on the first page using a script. However, I am struggling with centering a window div at each section anchor.
As the page scrolls across and reaches each section, I am attempting to create a resizable #verycentre div for each section.
The current code that I am using works perfectly for the first centered div in section 1. I suspect that the issue may be due to the function call being made on document.ready.
At that time, there is only one #verycentered div in the window, which I believe is causing the problem. How can I ensure that all #verycentered divs at each anchor point are centered and resizable?
Thank you for your help.