Forum Moderators: open
I need the image to repeat vertically to fill in the cell.
The code that works in Safari and Firefox is:
<td colspan="3" valign="top" background="images/index_13.gif"><img src="images/index_13.gif" width="374" height="10" alt=""></td>
I've tried adding a table inside of the cell with a transparent gif. I also tried CSS but I can't get it to work either.
Please help before my brain explodes!
That works perfectly in Firefox and Safari but still fails to show up in IE for the PC or the Mac.
There is no content in the cell. I tried using a transparent gif but still no background.
What I have looks like this:
CSS
.background_a {
background-image:url(images/index_13.gif);
background-repeat:repeat-y;
}
HTML
<td class="background_a" colspan="3"></td>
Anything else you can think of? Thanks.
While you are testing, you may want to skip the background-repeat: rule because the default will be to tile both ways.
Yes, you will need some content in the cell - try if you want no visible content. Also, for development you may want to use border="1" in the table to be sure your cell extends where you thinnk it does.
And finally, most importantly, validate your html and css - a simple error can give you unexpected display problems that you will never remedy until you fix the error.
W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]