To place a background in a table, perhaps set against a solid color page background,
here is the basic html code:
The image file called image.jpg now becomes your background. A typical image
would show up "tiled". In other words, it repeats itself horizontally
and vertically to fill the screen. This usually does not look very professional,
so here are five tricks to clean it up and spice it up.
1. Use "strip" graphics. Strip graphics are simply very long images
that stretch across the screen. When they repeat, they repeat one below the
other. To see this in action, view my SEO
page. The yellow strip along the right side looks like it is part
of the top banner image. But it is a 650 by 20 strip image, mostly white, with
a touch of yellow along the left side. This works well with patterns that vary
only from left to right
2. Hold the background in place. When a visitor scrolls down, the text rolls
over the image. I used this trick at my personal
website: (Please forgive the mess – I never seem to find the time
to clean it up.) The html code to do this is:
This works for patterns, but it works best for photos or drawings, such as
a faded image of your company logo or a faded scenery shot or a faded photo
of people interacting. (Remember that the background should not stand out at
the expense of the foreground text and images, which is why you want faded images.)
3. Another great background trick is to place a smaller picture in the background,
such as your company logo or some other image that you do not want to take up
the entire screen. This works best against a white background. Here is the html
code:
If you want the image to show up just in a table:
I used this function in just one cell of a table by inserting it in my tag for my navigation menu at my liquid vitamins store. Notice how the faded bottle is in the background behind the navigation links, but it does not repeat down the page.
4. You can further control the position of the background image. Consider the
following code: