Solved

Add Horizontal bar to <div> in Chrome

Posted on 2011-02-16
5
494 Views
Last Modified: 2012-08-14
Hi,

I am trying to add horizontal scrollbar to a <div> list.
It works OK in IE, but not in Chrome.

I tries -

obj.style.overflow='auto';
and
obj.style.overflowX='auto';










0
Comment
Question by:VapiSoft
  • 3
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
rawinnlnx9 earned 500 total points
ID: 34909195
Look at this accepted answer: http://stackoverflow.com/questions/3934271/horizontal-scrollbar-on-top-and-bottom-of-table

I think this is the rest of what you need.
0
 

Author Comment

by:VapiSoft
ID: 34909332
Yes, I see tha the trick is the I put obj.style.width="99%"
But now my problem is that I see the scrollbar, but is is disabled and does not have the tracker.
But, I think it is due to something else that I do, so I will give you the points.
But if you know why (it is disabled) please reply.
0
 
LVL 9

Expert Comment

by:rawinnlnx9
ID: 34909448
Do you have overflow-y: auto or overflow-y: scroll? Try swapping whatever you have and see if it helps. I think you can also set overflow: auto in the style tag and that would manage it for x and y.
0
 
LVL 9

Expert Comment

by:rawinnlnx9
ID: 34909492
From what I can see this should work unless you have scrolling disabled in an iFrame or parent container or in the CSS. That may interfere with what you are doing.
0
 

Author Comment

by:VapiSoft
ID: 34909513
When I put 'auto' than it doesn't show the scroll at all.
When I put 'scroll' it shows the scroll but it is disabled.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Wordpress and Wufoo 1 36
How to escape unsafe HTML tags 4 36
Increase counter and attr inside a while loop 15 34
AngularJS: ng-repeat 25 19
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This Micro Tutorial will demonstrate Moz's free MozBar that for some reason our Facebook mark did not get ported over, so this tutorial will show you how it saved us.
This Micro Tutorial will demonstrate how MozBar finds back links of any website you visit, as well as page, social shares to the page, and domain level metrics. There will me practical applications for this data.

713 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