PDA

View Full Version : Scrollable Content Script



fly2279
10-29-2004, 06:26 PM
Script: Scrollable Content

URL: http://www.dynamicdrive.com/dynamicindex11/scrollc.htm

I was wondering if there was a way to remove the horizontal scroll bar in this script. I only need/want the vertical scrollbar.

cr3ative
10-30-2004, 06:33 AM
There certainly is:

Replace this:


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


With this:


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


And you should be sorted.

cr3ative

fly2279
10-30-2004, 05:13 PM
Thank you, works fine in IE6 but not in NS7.2 and Firefox 1.0PR. Any suggestions?

cr3ative
10-30-2004, 05:37 PM
I found this somewhere a while ago...



I found out a long time ago that Netscape is an altogether different animal: it doesn't even comply to the system's settings and displays a plumb scrollbar everywhere it sees fit.


I forgot to run this script over FireFox (my default browser), as I wrote the code in Frontpage, which uses integrated IE6. Sorry :)

cr3ative

ddadmin
03-02-2005, 06:55 PM
Hi:
If I recall correctly, the correct way to hide the horizontal scrollbar in CSS is "overflow-x: hidden", not "overflow-x: hide". :) 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.

RedKing
03-03-2005, 06:45 PM
Hi ,everybody i have been trying to fix a contact form to link to e mail account for som resone it is not working. i want to send it to something like this. @than name.co.uk
any suggestions?
thanks
P.S this is how i done it

mailto:@than name.co.uk