Skip to content Skip to sidebar Skip to footer

Add Scroll To A Table

I have a table in which i add rows dynamically and i want to add a vertically scroll to the table when its width get 300 or more. Any tips?

Solution 1:

You can wrap your table in a <div> with the overflow: auto style, as follows:

<div style="overflow: auto; width: 300px; height: 300px;">
    <table>
    </table>
</div>

Post a Comment for "Add Scroll To A Table"