scrolling text box
Posted: Thu, 2008-07-24 06:07
Hi,
I want to make a page with a paper image backgroud, say 9"w x 5"h and in the middle of it place a scrolling text box for things like by-laws, etc. I tried the following but it didn't work. I am using Dreamweaver MX on A mac G4 w/OS 10.4.11.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>CSS Creator Forum View topic - Scrolling text</title>
<style type="text/css">
<!--
#site {
background: #ccc url(website_gif.gif) no-repeat;
width: 760px;
height: 400px;
position: relative;
}
#content {
height: 200px;
overflow: auto;
position: absolute;
right: 0;
top: 82px;
height: 191px;
padding: 0 1em;
}
-->
</style>
</head>
<body>
<div id="site">
<div id="content">
<p>
TEXT HERE
</p>
</div>
</div>
</body>
</html>


Moderator
Posts: 9201
Joined: 2004-06-30
Location: Milton Keynes
How do you mean "didn't
Posted: Thu, 2008-07-24 09:53
How do you mean "didn't work"? What's the problem?
newbie
Posts: 4
Joined: 2008-07-14
scrolling text box
Posted: Thu, 2008-07-24 15:39
Dear pineapplehead,
Thanks for the response.
What I mean by didn't is that the only thing that showed up on the page after I loaded the aforementioned code (and my image) were the words, "text here". Even then after I replaced "text here" with a long section of text the scroll didn't manifest itself. I don't know if for some odd reason Dreamweaver MX doesn't like the code or what but I sure would like to get it figured out.
Thanks,
Richard
newbie
Posts: 4
Joined: 2008-07-14
scrolling text box
Posted: Thu, 2008-07-24 16:30
Hey pineapplehead,
I am modifying my last post about How do you mean "didn't work"?
First, I revisited what I had done late last night and here are the results. The code looks like the following [url][url]
[/url][/url]and I am including the gif;<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>CSS Creator Forum View topic - Scrolling text</title>
<style type="text/css">
<!--
#site {
background: #ccc url(_ancillarybkg.gif) no-repeat;
width: 500px;
height: 295px;
position: relative;
left: 79px;
top: 116px;
}
#content {
height: 200px;
overflow: auto;
position: absolute;
right: 0;
top: 52px;
height: 191px;
padding: 0 1em;
left: 54px;
width: 394px;
}
-->
</style>
</head>
<body>
<div id="site">
<div id="content">
<p>
Anarran took up position just as Inteus squirmed his way under the
slab. Taking a firm grip on the stone, Anarran reached deep in his
heart. His Gahad bubbled and rose to the surface as the symbol seared
into his chest began glowing.
Javier from the other side suddenly felt the strain on his shoulder
considerably lessen. He could suddenly take full breaths, his chest
no longer constricted but the weight of the stone was still
there. "What's going on?" he asked as he scooted his mace handle
further in.
"Must be our friend and strongman.. well half man." Caswallon offered
and took position on the other side, opposite of Javier, allowing a
crawlspace between them. Together, the three men pit their muscle,
sweat, and pain against the weight of the stone slab. Inch by steady
inch, the blast door ground up until Javier's mace could no longer
offer any support. Within only a handful of moments the door was at
shoulder height and there they stopped, resting it on their shoulders
they waved the others through. Thorak bobbing past without even
having to duck, Enialis, having passed the travois earlier to
Caswallon, now turned and did a final sweep of the room.
for.
"So, lead the way out of this hell hole. We've been suck down here
for who knows how long, and there isn't anything that way except old
dead rotting bodies, foul ick, and walls."
His request for having Javier and his men lead the way out was not
quite a command, but the tone of his voice was such that it could
have been taken that way.
</p>
</div>
</div>
</body>
</html>
Guru
Posts: 2393
Joined: 2005-12-14
Location: Victoria British Columbia
ric.hammond wrote:Even then
Posted: Thu, 2008-07-24 17:37
Don't use Dreamweaver's rendering to judge how your code will look in a browser, ever. Look at the code in an actual browser. Dreamweaver's rendering engine just totally sucks.
I could change my plea to guilty,
but I don't think it would stick.
Ed Seedhouse