Click here to Skip to main content
15,917,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In one of my .html file, I coded
<body style="overflow-y:scroll;">

However, the vertical scrollbar does not display.

What I have tried:

Vertical Scrollbar Not displayed
Richard MacCutchan 16-Mar-21 8:51am    
The scrollbar will only be visible when the data overflows at top and bottom.
s yu 16-Mar-21 14:13pm    
This is a vertical one. But it does not display on the right of the container.
Richard Deeming 17-Mar-21 5:24am    
Works fine for me. There must be something else in your styles which is overriding the property.

Inspect the body element in your browser's developer tools, and look at the computed style to see what the property is set to, and where it's set.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900