Solved

Display only vertical scroll bar for a div

Posted on 2008-10-01
3
4,115 Views
Last Modified: 2013-11-19
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
Comment
Question by:Stanton_Roux
3 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 200 total points
ID: 22612247
0
 
LVL 3

Assisted Solution

by:cameroncooke
cameroncooke earned 200 total points
ID: 22612251
Use the following stylesheet rule on the DIV element.
overflow-x: none;

Open in new window

0
 
LVL 4

Assisted Solution

by:sijishJohn
sijishJohn earned 100 total points
ID: 22612412
try this..
<div style="overflow-x:hidden;overflow-y:scroll;"></div>
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
The Best Website Creation Tools 14 59
ASP.net VB.net Highlight html text in yellow in body of email 5 24
How would I do a website like this? 5 60
Why a span is lower 2 21
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question