Add scrollbar to a table or div using css

by Rekha 2010-02-09 12:38:20

You can add scroll bar to a table or div using the style,overflow:scroll

<div style="overflow:scroll;height:80px;width:100%;overflow:auto">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>test</td>
</tr>
<tr>
<td>test</td>
</tr>
<tr>
<td>test</td>
</tr>
<tr>
<td>test</td>
</tr>
<tr>
<td>test</td>
</tr>
<tr>
<td>test</td>
</tr>
</table></div>

Tagged in:

1153
like
0
dislike
0
mail
flag

You must LOGIN to add comments