View Full Version : Scrollable Content Spacing

10-31-2009, 12:17 PM
1) Script Title: Scrollable content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/scrollc.htm

3) Describe problem:

I have several instances of the scrollable content script working fine except that there is no space to the right of the text in the scroller. What I mean is, the block of text that I am using (which is alligned to the left) is pushed up way to close to the actual bar of the scrollable content.

It seems to me that for whatever reason, this is not the case in the demo for the scrollable content script on this site.

10-31-2009, 02:07 PM
This is one of the earlier 'scripts' of Dynamic Drive, and it is not a javascript. The ilayer and layer tags are no longer supported or required by modern browsers. I believe the last browser to support them was NS 4. So this now becomes more or less an exercise in ordinary HTML and css style:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
#scrollable_1 {
height: 12.5em;
width: 11em;
text-align: left;
padding: 1ex;
overflow: auto;
background-color: #ccc;
color: #000;
<div id="scrollable_1">
A bumbling quail unhesitantly sighs over that bumpy aardvark. Your abiding peasants unflappably interpolate your blue goblins. A burning scandal unattractively signs our busy fielders. Your absorbing sandpipers unrestrainedly add to our bitter schnitzels. The a cappella scoundrels tidily sin for those abundant aces. Their aching exhortations actually spoil the bluish mnemonics. Those bittersweet megaphones wrathfully sneeze at your cajoling seagulls. Those blazing seas mousily sniff an accommodating acre. Her blooming animals leerily signal her black fiduciaries. That calm man abhorrently sings about the calculating mice.