Is it possible to move the position of a scrollbar to diffrent part of the page?
Or is there any other solution for this?
<div style="overflow: scroll; overflow-y: hidden">
</div>
i want the scrollbar to be in another component instead inside this div.
I have it like this today
<div id="table_container" style="width: 100%; margin: 0 auto;">
<table style="width:200px;border: 1px solid black;float: left;">
This is data i don't wanna scroll so it is allways same even if i scroll the other table by X
</table>
<div class="results" id="contractList" style="overflow: scroll; overflow-y: hidden">
<table style="border: 1px solid black;float: left;">
This table i have so the content is scrolleble by X
</table>
</div>
</div>
What i would like to add is so i can scroll all the content by Y by adding
overflow: scroll; overflow-x: hidden to my first div and still being able to scroll the second table by X without having to be at the bottom of the first div.
Yes this is possible with JavaScript and CSS on HTML;-)
Check out the code I made for you in the http://www.w3schools.com/html/tryit.asp?filename=tryhtml_basic
Just copy&paste to see how it works, I do not think explanation is required.
I hope this answers your question? Because it was not really crystal clear to me what you required.
Ow wait, I reread your question, and it seems clear to me what you want. So you can just print X number of tables, in which you can just scroll the Y-axis. And at the bottom of the tables, you put the scrollbar div, and you will have to adapt the javascript a bit and loop through the tables:
you will need to retrieve maxWidthFromTables, when using tables of different width, just get the maximum width from:
tables[i].scrollWidth;