Answers for "only show scrollbar 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 "only show scrollbar when needed"

Browse Popular Code Answers by Language