The Web Blinders logo

Programming

HTML - How to create a Horizontally Scrollable Table

You can see it in the below live demo of a table

Entry Header 1 Entry Header 2 Entry Header 3 Entry Header 4 Entry Header 5 Entry Header 6 Entry Header 7 Entry Header 9
Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line
Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line
Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line Entry First Line

This is how you do it

<div class="horizontalScroll">
  <table>
    <!-- Your data here---->
  </table>
</div>
div.horizontalScroll {
    overflow: hidden;
    overflow-x: auto;
}
div.horizontalScroll table{
/* your table styles */
} 

ALTERNATE TITLES

html scroll table horizontally

css table overflow x scroll

Need developers ?

if so, send a message.

thewebblinders@gmail.com

More Programming from our blog

SEARCH FOR ARTICLES