I am currently working on a page with inline-block divs that extend horizontally off the screen.
Feel free to view my Codepen demonstration:
http://codepen.io/gosusheep/pen/GJEPEV .
You can also see the processed output here: .
Within the #slider div, I have multiple .slide-content divs, each spanning the entire window size. As I scroll, they should transition to the next page.
My goal is to have the .slide-content divs aligned directly next to each other. Despite my efforts, there seems to be a small gap between each div, as revealed by Chrome's element inspector.
If the window size is 1000, ideally I would like the first div to be at x:0, the 2nd at x:1000, and so forth. This way, when I use $(window).scrollLeft(1000), it should position the 2nd div in the center of the screen.
However, upon adding borders to the divs to investigate the spacing issue, I noticed an undesired gap between them.
Does anyone have insights on why this is happening?
Thank you for your attention.