x

horizontal scrollbar default position

Dear all,

We are using this piece of code (thanks to the community!) for a horizontal scrolling feature on:

http://zwerm.weebly.com/calendar.html

<style> 
.main-wrap .container { overflow-x: scroll !important; overflow-y: inherit !important; }
.main-wrap .container > .wsite-section-elements { width: 200% !important; }
</style>

However, since it's a calendar, it would be great if the page would open default with the current year on the left side of the screen. Visitors can then choose wether to scroll left or right (future/past)

Is there a way to get this done?

Thanks again!

1,293 Views
Message 1 of 5
Report
4 REPLIES 4
Square

Did you update the page since posting this, @Toon? When I look at it that's what I'm seeing (2018 on the left going backwards in time to the right).

1,287 Views
Message 2 of 5
Report

Dear Adam,

Thanks for the fast responding. My question was'nt very clear. I'm sorry.

What would be ideal for us is when you open the calender:

the colum of 2017 is centered,

you can see a little bit of the 2018 colum at the left side and you can see a little bit of the 2016 colum at the right side.

So in default position you can scroll both directions (present is centered, future to the left, past to the right)

That would be great

many thanks

Toon

1,283 Views
Message 3 of 5
Report

Hey there Toon! That may be a tweak you'd want to do in the code. We wouldn't be able to help with that directly, but our Community here may be able to point you in the right direction.

1,269 Views
Message 4 of 5
Report

Hi

We already got an answer in the community, thanks!

Toon

1,199 Views
Message 5 of 5
Report