Answers for "how to show scrollbar only when needed"

CSS
1

scrollbar appear only when needed

overflow: auto
Posted by: Guest on August-27-2020
0

html always show scrollbar

jQuery shouldn't be required. You could try adding the CSS:

body    {overflow-y:scroll;}
This works across the latest browsers, even IE6.
Posted by: Guest on March-25-2021

Code answers related to "how to show scrollbar only when needed"

Browse Popular Code Answers by Language