[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Display only vertical scroll bar for a div

Posted on 2008-10-01
3
Medium Priority
?
4,144 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 800 total points
ID: 22612247
0
 
LVL 3

Assisted Solution

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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
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…
Suggested Courses

872 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