Hide table scrollbar

28,360

Solution 1

Use overflow: hidden; to hide the content outside of the container, or overflow: visible; to display it even if it's going outside of the container borders. Both remove the scrollbar.

Solution 2

You can remove scrollbar easily by using the following CSS class:

.overflow-hidden {
    overflow: hidden;
}

If you are using Bootstrap just use overflow functionality. Find docs here

<div class="overflow-hidden">...</div>
Share:
28,360
Vetterjack
Author by

Vetterjack

Updated on October 09, 2020

Comments

  • Vetterjack
    Vetterjack over 3 years

    After some researches I found out that I have to set the tbody of a table

    display: block;
    overflow: auto;
    

    to enable scrolling on a html table.

    Is there a possibility to hide the scrollbar generic on every modern browser (Chrome, Safari, Firefox)? I tried some solutions like this one but it doesn't work on a table.

  • Rokin
    Rokin about 9 years
    Or maybe you want something like this: stackoverflow.com/questions/16670931/… ?