Over 15 years we helped companies reach their financial and branding goals. Beach Life Marketing is a values-driven and dedicated marketing agency.

LATEST NEWS
CONTACTS
Coding Tips

Adding background image to a single table cell

Here is a great html tutorial for adding background image to a single cell.

Using style inside the the td tag itself is a great way:

 

<td style="background-image: url(PATH/TO/IMAGE);">

 

That is if you want to use inline coding. But if you want to use CSS to keep it clean.
Then I would suggest using this:

HTML Code on the page

<td class="green_background"></td>


CSS in your stylesheet

.green_barground {
background-image: url(PATH/TO/IMAGE.JPG);
}

 

 

Author

Administrator