Scrollbar

How to hide scrollbar but still scroll

How to hide scrollbar but still scroll
  1. How do I hide scrollbar and still scroll?
  2. How do I show scrollbar only when needed?

How do I hide scrollbar and still scroll?

To make it invisible without impacting scrolling, you just have to target the body element using the ::-webkit-scrollbar pseudo selector and set the display to none . As you can see below, the scrollbar is no longer visible, but the page is still scrollable for both the mouse and keyboard.

How do I show scrollbar only when needed?

Use overflow: auto . Scrollbars will only appear when needed. (Sidenote, you can also specify for only the x, or y scrollbar: overflow-x: auto and overflow-y: auto ).

How to design a complex process with 15 steps
What are the 5 stages of design process?What is step 7 in basic steps of design process?How many processs are in the design process? What are the 5 ...
How to display that there is important information in an information pop-up
What should a pop up contain?How do you write a pop up message?Why pop up is important?What is the pop up message? What should a pop up contain?Typi...
Making sorting discoverable on a table with no default sort
How do I make a table sortable?How do I disable sorting for one column in material table? How do I make a table sortable?How to Make Sortable Tables...