Re: Image as TableBackground?

The below mentioned case is true, if you want same background umage for all of
TDs in the document.
If not, it is better to use classes:
 <head><title>....</title>
 ...
 <style type="text/css">
  .cell1 { background-image:url(image1.gif); }
  .cell2 { background-image:url(image2.gif); }
 </style>
 </head>

In the table:
<TD class="cell1"> or
<TD class="cell2">.

Regards:
Miklos Monostory
------------------------------------
mailto:infoteam@fw.hu
http://infoteam.fw.hu
http://htmlinfo.fw.hu


----- Original Message -----
From: "Tantek Celik" <tantek@cs.stanford.edu>
To: "James Craig" <james_craig@Powered.com>; "'Damian / C64.CH'"
<webmaster@c64.ch>; <www-html@w3.org>

> Instead of:
>
>  <td style="background-image:url(image.gif)">
>  <td style="background-image:url(image.gif)">
>  <td style="background-image:url(image.gif)">
>  <td style="background-image:url(image.gif)">
>  <td style="background-image:url(image.gif)">
>
> Simply put a style sheet in your document head which has a rule for applying
> background-images to your <td>s
>
> <head><title>....</title>
> ...
> <style type="text/css">
>  td { background-image:url(image.gif); }
> </style>
> </head>
>
> which allows you to minimize your <td>s:
>
>  <td>
>  <td>
>  <td>
>  <td>
>  <td>
>
>
> Regards,
>
> Tantek
>

Received on Friday, 19 October 2001 18:25:05 UTC