When the browser opens up my page, the browser should already be in the center of the whole page.
Meaning: I have a horizontal one-page, which instead of starting from the left and going to the right (e.g. this), will start in the middle, and be able to scroll to the content on both the right AND the left.
Here is a visual:
If possible, I'd like to avoid dom-ready scrolling via JavaScript or jQuery (I'm using it for navigational aid and stuff anyways), and use only pure html5/css or at least focusing the screen pre-dom-ready through JavaScript/jQuery.
Two ideas on my part:
a) moving the container to the left e.g. using margin-left:-x
, but that usually cuts it off.
b) moving the screen to the right from the start.
Alas, I have been too unsavvy to achieve this on my own.
p.s. here my jsfiddle for consistency: http://jsfiddle.net/alexdot/2Dse3/