Log in

View Full Version : untile a background in a table cell?



sclassen
08-04-2009, 12:19 PM
I have a background image in a cell in a table. I don't want it tiled. How do I keep it from doing this?

bluewalrus
08-04-2009, 11:52 PM
no-repeat? What's your code?

sclassen
08-07-2009, 02:39 PM
Here's is the code:
<td background="../../flowers1.jpg" colspan="4">

Snookerman
08-07-2009, 03:31 PM
Add this to your CSS code:

td {
background-repeat: no-repeat;
}

Good luck!

sclassen
08-09-2009, 05:51 PM
ok, this is what I have now:
<td background="../../flowers1.jpg" background-repeat: no-repeat>

and this is what it's showing on the site:
http://www.christianchurchofburlington.com/Womens%20Ministries.html

I don't want the white strip in the flowers. Do I need a bigger picture maybe?

Snookerman
08-10-2009, 11:38 AM
Use this instead:

<td background="../../flowers1.jpg" style="background-repeat: no-repeat;">
I'd also like to suggest that you search for some tutorials about CSS in order to stop using inline styling and deprecated markup.

Good luck!

sclassen
08-10-2009, 11:19 PM
Thanks. I think I'll take your advice.