|
Table background examples
Table 1:
A simple table with a background color.
| row 1 column 1 |
row 1 column 2 |
row 1 column 3 |
| row 2 column 1 |
row 2 column 2 |
row 2 column 3 |
| row 3 column 1 |
row 3 column 2 |
row3 column 3 |
Table 2:
A simple table with the background set as an image. Notice how the image repeats itself both horizontally and vertically.
| row 1 column 1 |
row 1 column 2 |
row 1 column 3 |
| row 2 column 1 |
row 2 column 2 |
row 2 column 3 |
| row 3 column 1 text
text
text
text
text
text
text
text
text
text
text
|
row 3 column 2 |
row 3 column 3
|
Table 3:
Here, we have prevented the repeat with a simple style sheet entry (goes in between the <head> and </head> tags.).
| row 1 column 1 |
row 1 column 2 |
row 1 column 3 |
| row 2 column 1 |
row 2 column 2 |
row 2 column 3 |
| row 3 column 1
text
text
text
text
text
text
text
text
text
text |
row 3 column 2 |
row 3 column 3 |
|
|