Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

horizontal scrolling

Status
Not open for further replies.

Albert3162

Programmer
Jul 13, 2001
18
US
Hello,
I have table on webpage with a lot of columns,
Do somebody knows any ways how present this table in compact style.
How can I show some columns static and rest columns horizontal scrollable?

Thaks,
Albert.
 
you can do this without javascript, simply put a div in the TD and set the overflow setting to scroll - like this:
Code:
<tr>
<td>this is a small cell</td>
<td><div style="overflow: scroll">this is a bigger cell so we need to give it scrollbars so it doesn't take up so much room !!!</div></td>
</tr>
</table>
You should probably set width and / height attributes for this to work. Otherwise I think the div will just stretch to show all it contains.

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top