PDA

View Full Version : background picture



Fuzzylogic
April 9th, 2003, 21:52
i was wonder if theres a way to place a background picture in a table that would appear always at the bottom of the table. Or would i have to make an image to be the size that the image appears to be at the bottom.

bloodyveins
April 10th, 2003, 09:43
check out www.softhome.net (http://) .View its source. Look at tag <style> for body. It's one way to set up your background position by using css. Another way is by using Java Script. You can add your own class to set up your background position.

Cagez
April 10th, 2003, 09:47
Place this in your HEAD of the html document

<style type="text/css">
<!--
td.bg {
background-image: "/the/path/to/image.gif";
background-position: bottom;
background-repeat: no-repeat;
background-color: Black;
}
-->
</style>

Then when making your table cell:

<table>
<tr>
<td class="bg">My Info</td>
</tr>
</table>

You can change the image path and the bg color in the CSS part up at the top

rehni
May 3rd, 2003, 21:16
couldn't you put that code in an external style sheet?

Cagez
May 4th, 2003, 00:59
Yes,

css.css:

td.bg {
background-image: "/the/path/to/image.gif";
background-position: bottom;
background-repeat: no-repeat;
background-color: Black;
}


html.html

<html>
<head>
<title> MMM </title>
<link rel="stylesheet" href="css.css" type="text/css" />
</head>
<body>

<table>
<tr>
<td class="bg">My Info</td>
</tr>
</table>

</body>
</html>