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


Tags: html5,css3

Problem :

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



Solution :

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>

    CSS Howto..

    How to style a

    inside a div with css [closed]

    How to hide a