Link to home
Start Free TrialLog in
Avatar of VapiSoft
VapiSoft

asked on

Add Horizontal bar to <div> in Chrome

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';










ASKER CERTIFIED SOLUTION
Avatar of rawinnlnx9
rawinnlnx9
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VapiSoft
VapiSoft

ASKER

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.
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.
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.
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.