Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide table scrollbar

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.

like image 468
Vetterjack Avatar asked Apr 13 '15 13:04

Vetterjack


People also ask

How do I get rid of the scroll bar?

Type "Remove Scrollbars" (without quotes) in the search box and press "Enter." Click the "Remove Scrollbars" option located on top of the search results.

How do I remove vertical scrolling in Table control in ABAP?

You can remove the scroll bar in the table control by switching off horizontal and vertical scrolling in the properties of the table control. The properties can be accessed from the screen painter by double clicking on the table control.


1 Answers

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.

like image 144
Rokin Avatar answered Oct 11 '22 10:10

Rokin