Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add a horizontal scrollbar to a table in a div?

How can I add a horizontal scroll bar to a table that is inside a div? Is there CSS solution for this?

like image 481
Sandy Avatar asked Jun 07 '12 02:06

Sandy


1 Answers

You will not be able to add a scrollbar to a table, but you can add it to a DIV containing your table.

For example:

<div style="width: 400px; height: 200px; overflow: scroll;">
   <table>...</table>
</div>
like image 83
Victoria Ruiz Avatar answered Oct 18 '22 05:10

Victoria Ruiz