So I have a pure CSS and HTML timeline (http://cssdesk.com/a5NVw) with a scroll bar by implementing overflow:scroll. However to get it to start at the latest event I have to have the scroll bar start at the full right rather than full left position. I've tried using direction:rtl to do this (first time I've used this attribute) however it makes the content overflowing on the right-hand side just become hidden. I assume this is due to it implementing the scrollbar before checking the position of the sub-elements - how should I resolve this?
It has been mentioned that my explanation isn't clear so here is a summary of the issues:
- Have a timeline that I want to be scrollable.
- Want the scrollbar to default to the right rather than the left (so
it shows most recent by default). - Tried using direction:rtl to start the scrollbar on the right.
- However this led to the contents that would normally be scrolled
right for overflowing on the right instead.
As for my example not working - that's precisely the issue. If you remove the directional attributes it works fine, however it starts on the left which is where I started on this. I want to try and use a pure CSS solution for it although I know that a JQuery solution might be more expedient - and I may well end up resorting to that if I no one knows how to implement this method.