I have been digging around on the internet at other SOF questions and other various websites. I seem to be having issues getting the scrollbars/alignment of this table to work nicely.
I have a table of the following format:
Column 1 | Column 2 is slightly longer | Column 3 | Column ......
Data | some random text is in here and should make the column 2 expand this far | data | .....
Data | some random text is in here and should make the column 2 expand this far | data | .....
Data | some random text is in here and should make the column 2 expand this far | data | .....
Data | some random text is in here and should make the column 2 expand this far | data | .....
Data | some random text is in here and should make the column 2 expand this far | data | .....
Data | some random text is in here and should make the column 2 expand this far | data | .....
Data | some random text is in here and should make the column 2 expand this far | data | .....
Data | some random text is in here and should make the column 2 expand this far | data | .....
Data | some random text is in here and should make the column 2 expand this far | data | .....
Data | some random text is in here and should make the column 2 expand this far | data | .....
Data | At this row I want it to not be showing and you have 2 scroll down 2 see | data | .....
Data | At this row I want it to not be showing and you have 2 scroll down 2 see | data | .....
The challenging part I am having is I cannot seem to get the <thead><tr>
part at the top (Column 1, Column 2) to continue to show as visible while scrolling down vertically. I also need to be able to scroll horziontally like in the code samplet that SOF displays shows up above and keep the <thead>
and the <tbody>
parts aligned.
Anyone have a jsfiddle or something similar handy that shows a proper example of this?
Thanks.