"Peewiglet" <[email hidden]> wrote in message
news:[email hidden]...
Quoted message said:Sorry for asking something so OT, but I reckon someone here will know
the answer.
I've got a page with a table on it. The table's a fixed width, and the
idea is that the size of the rest of the page will be determined by
the size of the monitor on which people are looking at the page.
I'd like to have a background image in the table, and a background
colour in the larger page. However, I find that if I include a
background colour in the body (for the larger page) then the
background image doesn't show up in the table.
Can anyone tell me what I'm doing wrong. I'm sure there must be a
simple answer to this but so far my efforts have failed to uncover it.
Many thanks for any help.
Best wishes,
--
Peewiglet
The background colour of the page won't affect your ability to display a
background image in the table (unless the colour of the image is the same as
the page's background colour!)
The code for your table probably looks something like this:
<body bgcolor="#000000">
<table width="100" height="2" background="backgroundimage.jpg">
<tr>
<td height="30">Table content text</td>
</tr>
</table>
</body>
Don't forget that if the image is larger than the table, then parts of the
image will get cut off, unless the content within the table (your text,
etc.) expands the table sufficiently to display the full image. This is
because you have set an absolute pixel size for the table.
It's not normally necessary to set an absolute pixel size for a table.
Percentages normally work better, and are more flexible regarding screen
resolutions, monitor sizes, etc.
Pete