USING CSS TO DECLARE A REPEATING BACKGROUND TO A TABLE CELL

 

Cell 1:

We applied a repeating background image using CSS

We have set a width of 250px.

We also added a border-right style to achieve the thin black border on the right of this cell.

 

PNG file used can be downloaded here

 

 

 

 

 

 

 

Back to Tutorials >>

Cell 2:

Copy and paste the following in the head of your document, just before the closing </head> tag, to write a class for a cell containing a repeating background.

and apply the style to the table cell like so:

<td class="cellback">

or you can add the following directly to your stylesheet.