additude
12-18-2006, 08:17 PM
1) Script Title: Watermark Background Image Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex3/fixback.htm
3) Describe problem:
I changed the script to a css:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<style type="text/css">
#bgtable {
background:url('../images/header.jpg') white center no-repeat fixed;
}
</style>
</head>
I need it to work inside a table that I have:
<body bgcolor="#FFFFFF">
<div align="center">
<table id = "bgtable" border="0" cellspacing="0" width="700" bgcolor="#FFFFFF">
<tr>
<td align=center colspan="2" width="100%"><p> <br> </p></td>
</tr>
...much more table code...
</table>
</div>
</body>
</html>
I get the header.jpg image in the table, but it doesn't float like in the example on the watermark script page. The image I have is stationary in the exact center of the table and as it is a "tall" table I need to scroll to see more of the table, but the header.jpg is fixed in the center and moves up and down with the scroll.
How can I make the image float like in the watermark script example?
Thanks!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex3/fixback.htm
3) Describe problem:
I changed the script to a css:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<style type="text/css">
#bgtable {
background:url('../images/header.jpg') white center no-repeat fixed;
}
</style>
</head>
I need it to work inside a table that I have:
<body bgcolor="#FFFFFF">
<div align="center">
<table id = "bgtable" border="0" cellspacing="0" width="700" bgcolor="#FFFFFF">
<tr>
<td align=center colspan="2" width="100%"><p> <br> </p></td>
</tr>
...much more table code...
</table>
</div>
</body>
</html>
I get the header.jpg image in the table, but it doesn't float like in the example on the watermark script page. The image I have is stationary in the exact center of the table and as it is a "tall" table I need to scroll to see more of the table, but the header.jpg is fixed in the center and moves up and down with the scroll.
How can I make the image float like in the watermark script example?
Thanks!