PDA

View Full Version : Scrolling text


brisa_main
10-06-2005, 11:27 AM
hi

i have been sent some coding that is some text with a basic scroll bar.
I have the text in the right height and width to fit into a table on the website im doing, however im not sure where to insert the code.

heres the code for the text+scroll:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
.scroll {
height: 280px;
width: 285px;
overflow:auto;
padding: 8px;
}
-->
</style>
</head>

<body bgcolor="#999999">
<div class="scroll"> <FONT color=#333333><BR>
<font size="2" face="Arial">The village offers accommodation and facilities exclusively
for older people (everyone must be either over the age of 55 or married to someone
who is) ..... and when you have visitors, you can hire a guest bedroom. There
is a range of accommodation to choose from - 1,2 or 3 bedroom apartments; 3
or 4 bedroom cottages; and fully serviced apartments offering comprehensive
care. For independent living, you should consider the aparaments in Pendower
House, Turnaware House and Greeb House or one of the Tolverne Cottages, Lamorran
Cottage or Percuil Lodge. Alternatively, the fully serviced apartments are in
St Anthony House and Nare House, close to communal facilities at the heart of
the village. They will suit residents seeking the reassurance of comprehensive
care, while enjoying the comfort of their own home, They come with daily visits
and hotel-style, room services as standard. You can leave all the daily domestic
chores to us.</font></FONT></div>
</body>
</html>

and this is the table bit of the code in the website:

</tr>
</table>
<table width="305" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="237" height="304"></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>


where do i stick it?

cheers

domedia
10-06-2005, 01:22 PM
Here ya go, just stick all the code inside the table:
</tr>
</table>
<table width="305" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="237" height="304">

<div class="scroll"> <FONT color=#333333><BR>
<font size="2" face="Arial">The village offers accommodation and facilities exclusively
for older people (everyone must be either over the age of 55 or married to someone
who is) ..... and when you have visitors, you can hire a guest bedroom. There
is a range of accommodation to choose from - 1,2 or 3 bedroom apartments; 3
or 4 bedroom cottages; and fully serviced apartments offering comprehensive
care. For independent living, you should consider the aparaments in Pendower
House, Turnaware House and Greeb House or one of the Tolverne Cottages, Lamorran
Cottage or Percuil Lodge. Alternatively, the fully serviced apartments are in
St Anthony House and Nare House, close to communal facilities at the heart of
the village. They will suit residents seeking the reassurance of comprehensive
care, while enjoying the comfort of their own home, They come with daily visits
and hotel-style, room services as standard. You can leave all the daily domestic
chores to us.</font></FONT></div>

</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<style type="text/css">
<!--
.scroll {
height: 280px;
width: 285px;
overflow:auto;
padding: 8px;
}
-->
</style>
</body>
</html>

Note: the <style> tag SHOULD go inside the HEAD element of the website, I stuck in the bottom i the code above,. it works, but it's not valid HTML.