devxlogo

Assign Image and Color Backgrounds in Table Cells

Assign Image and Color Backgrounds in Table Cells

Browsers Targeted: Internet Explorer 4+

In Internet Explorer, you can assign images and colors into table cells and table rows through the background-image and background-color CSS attribute within style sheets. As a simple example, consider this table in which the colors of the rows alternate:

 
QuarterSales Figures
Jan 99$12,550,200
Apr 99$16,320,300
Jul 99$14,123,220
Apr 99$18,982,420

devx-admin

Share the Post: