Forums

This topic is locked

forced tiling

Posted 22 Mar 2005 03:50:14
1
has voted
22 Mar 2005 03:50:14 Joel Stransky posted:
Not sure what to call this. I have a background image in a table set to 800 width and centered. I'd like the height of the table to be 100% of the available window so that the background will tile from top to bottom. So if the page background was black, and the table's background was pink, without content you should see 3 columns (black, pink, black) spanning the height of the window. Currently its snaps to about 10 or 20 pix. any ideas?

Replies

Replied 22 Mar 2005 16:14:57
22 Mar 2005 16:14:57 Matt Bailey replied:
I'm not sure if this is what you mean, but you can give a percentage size for the height of a table, so your code would look something like this:

table width="800" height="100%" border="0" cellpadding="0" cellspacing="0"

If you're going to use a tiled image you would need to apply CSS to your table cell, so your style sheet would have the following selector:

td#centrecolbkg {
background: url(image.jpg) repeat-y scroll left top;
}

... and you would need to apply the style to your table cell like this:

td id="centrecolbkg"

Hope that helps.

___________________________________
* Sorry... how do you do that again?... *

Reply to this topic