Forum Moderators: not2easy

Message Too Old, No Replies

backgrounds

background inside a table

         

Adam5000

4:19 am on Nov 8, 2008 (gmt 0)

10+ Year Member



I've got a page with a black background on it.

<style type="text/css">
body
{
background-color: #000000;
}
</style>

And on top of that, I'd like to put a table with a white background. Is there a way to do that?

homeless

5:09 am on Nov 8, 2008 (gmt 0)

10+ Year Member



<html>
<head>
<style type="text/css">
body
{
background-color: #000000;
}
table.outertable
{
background-color: white;
width: 800px;
# height: 100%;
text-align: center;
}
</style>
</head>
<body>
<center>
<table class=outertable>
<tr><td>white background</td></tr>
</table>
</center>
</body>
</html>

Adam5000

10:42 pm on Nov 11, 2008 (gmt 0)

10+ Year Member



That works great. The table is going to be a letter on the page. And the background is going to be an image and look similar to email stationery.

Thanks for your help.