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>
Author by
Vetterjack
Updated on October 09, 2020Comments
-
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 about 9 yearsOr maybe you want something like this: stackoverflow.com/questions/16670931/… ?