PDA

View Full Version : Image Background To Table Cell?


youdw
06-15-2010, 10:43 PM
How do you add a background image to a table cell(not the entire page)?

I only can add color in the Properties, but I want to add an image as the background.

edbr
06-16-2010, 01:27 AM
make a class with the image as a background then assign that to the cell
as in <td class="your_class">

youdw
06-16-2010, 03:12 AM
I'm really new to this. I have no idea what you mentioned. Can you give me an example code?

edbr
06-16-2010, 03:24 AM
in your style tag or css sheet (better)add. edit the image path to your image


.cell{ background-image: url(/your_image.jpg);}

in the html in the cell you want to have a background

<td class="cell" >
you will have to work at least in split view so you can see this of course.
you will get a lecture i expect that tables should not be used for layout.