W3C home > Mailing lists > Public > www-html@w3.org > October 2001

Re: Image as TableBackground?

From: unknown charset <dkmm@axelero.hu>
Date: Fri, 19 Oct 2001 10:58:34 -0400 (EDT)
To: Tantek Celik <tantek@cs.stanford.edu>
Cc: www-html <www-html@w3.org>
Message-id: <000c01c158a9$c38e8860$bb4dec91@monostor>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:49 GMT