popular categories
Fun Facts
Crafts
Technology
Safety


technology / web design / background image table

Add a Background Image to a Table

Described below are the TD and CSS approaches for adding a background image to a table in HTML:

This is a table with a background image.

The TD background method is shown below

<td background="yourbackground_image.gif">

Background applied to left-side column only in an actual table:

<table>
<tr>
<td background="yourbackground_image.gif">
Left-Side Column
</td>
<td>
Right-Side Column
</td>
</tr>
</table>


CSS Table Background Image

<table>
<tr>
<td style="background-image: url(yourbackground_image.gif); background-repeat: no-repeat;">
Left-Side Column
</td>
<td>
Right-Side Column
</td>
</tr>
</table>

Related articles:

Wrap Text Around Images in HTML | Wrap Text Around Images in CSS

featured articles

Understanding Canines: Dogs Are Not Wolves Understanding Canines: Dogs Are Not Wolves
Why the domestic dog of today is not like a wolf.

Make a Polymer Clay House Necklace Make a Polymer Clay House Necklace
How to make a polymer clay necklace with house-shaped beads.

Police Signal Codes What Are Police Signal Codes?
Police signal codes used in police radio communication and their meaning.

Reading Cat Behavior Reading Cat Behavior: How to Tell if Your Cat is Distressed
Is your cat happy or distressed? Subtle clues to look for.

Silly and Wonderfully Weird Japanese Things Silly and Wonderfully Weird Japanese Things
A review of some silly and wonderfully weird Japanese products.

Polymer Clay Basics Polymer Clay Basics
Polymer clay to cover objects and a step-by-step clay jigsaw puzzle heart stool project.

Why GMO Foods are Here to Stay Why GMO Foods are Here to Stay
GMO laws, farmer protections, amendment to HR 933, and concerns about GMO foods.

Strange Myths of South Africa Strange Myths of South Africa
Myths and legends are what make different countries special. South Africa is no exception.

Find the Circumference of a Circle Find the Circumference of a Circle
Instructions how to find the circumference and briefly explains the meaning of Pi.

Driving in Danger Zones Medical Conditions That Can Make a Person Act Drunk
Medical conditions that can make a person act as if they are drunk or intoxicated.