• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4146
  • Last Modified:

Display only vertical scroll bar for a div

Hi There

I have a div and I would like only the vertical scroll bar to be visible.
The div would never scroll horizontally.
If their is no overflow horizontally i would like the scroll bar to still be there.
Thanks
Stanton
0
Stanton_Roux
Asked:
Stanton_Roux
3 Solutions
 
cameroncookeCommented:
Use the following stylesheet rule on the DIV element.
overflow-x: none;

Open in new window

0
 
sijishJohnCommented:
try this..
<div style="overflow-x:hidden;overflow-y:scroll;"></div>
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now