Solved

Display only vertical scroll bar for a div

Posted on 2008-10-01
3
4,105 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
Comment Utility
0
 
LVL 3

Assisted Solution

by:cameroncooke
cameroncooke earned 200 total points
Comment Utility
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
Comment Utility
try this..
<div style="overflow-x:hidden;overflow-y:scroll;"></div>
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

772 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