Solved

Display only vertical scroll bar for a div

Posted on 2008-10-01
3
4,111 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now