Displaying An Image Background Within HTML Table Cells

Displaying an Image Background within HTML Table Cells

You can add an image background to your HTML table cells by adding BACKGROUND="yourimage.gif" to your <TD> tag. Example HTML Code:

<TABLE BORDER="0" CELLPADDING="2" WIDTH="50%"> <TR> <TD BACKGROUND="yourimage.gif"><FONT COLOR="White">This example displays your text over your image background.</FONT> </TD> </TR> </TABLE>

Browser View:

This example displays your text over your image background.

Example HTML Code:

<TABLE BORDER="0" CELLPADDING="2" WIDTH="50%"> <TR> <TD BACKGROUND="yourimage.gif" WIDTH="10%"> </TD> <TD WIDTH="40%">This example displays your text next to your image background. </TD> </TR> </TABLE>

Browser View:

This example displays your text next to your image background.

More Web Design Tips

Từ khóa » Html Table Cell Background Image Resize