View Full Version : Scollable Content w/ NS7 & IE6

03-02-2005, 03:06 PM
A few days ago I asked a question about how to remove the horizontal scroll bar from the Scrollable Content (http://www.dynamicdrive.com/dynamicindex11/scrollc.htm) script. I found out how to do that by searching the posts ( sorry I didn't do that in the first place ) and in this post (http://www.dynamicdrive.com/forums/showthread.php?t=540&highlight=scrollable+content) I found out that it doesn't work well with NS. The post says that NS displays a scrollbar everywhere it sees fit.

My problem is that when I modify the script NS doesn't display ANY scrollbars.

It would be ok if I could get the look I want in only one browser as long as the script worked well enough in other browsers to display the contents.

Thanks much for any help!

03-02-2005, 06:54 PM
The solution in that thread is incorrect if I recall correctly. The property to hide the horizontal scrollbar in CSS is "overflow-x: hidden". So the result should be:

<div id="scroll3" style="width:170px;height:150px;background-color:lightyellow;overflow:scroll; overflow-x: hidden">

This will cause the horizontal scrollbar to disappear in IE, though as noted, Firefox will still display it.

03-03-2005, 09:18 PM
http://dynamicdrive.com/forums/images/icons/icon14.gifThanks for your help!!http://dynamicdrive.com/forums/images/icons/icon14.gif