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










VapiSoftAsked:
Who is Participating?
 
rawinnlnx9Connect With a Mentor Commented:
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
 
VapiSoftAuthor Commented:
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
 
rawinnlnx9Commented:
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
 
rawinnlnx9Commented:
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
 
VapiSoftAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.