[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Add Horizontal bar to <div> in Chrome

Posted on 2011-02-16
5
Medium Priority
?
502 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
rawinnlnx9 earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
This Micro Tutorial will demonstrate using MozBar to view an article that was deleted from the Search Engine Watch site after being debunked by Google.

650 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