- From: Tantek Celik <tantek@cs.stanford.edu>
- Date: Thu, 18 Oct 2001 11:15:09 -0700
- To: James Craig <james_craig@Powered.com>, "'Damian / C64.CH'" <webmaster@c64.ch>, "www-html@w3.org" <www-html@w3.org>
Yes, use CSS, either with a separate style sheet as James points out, or you can also do it inline. Instead of: <td background = "image.gif"> use: <td style="background-image:url(image.gif)"> Of course, once you may notice that you are sprinkling your HTML with a lot of style attributes, you may want to simply group them in one place, e.g.: 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 ---------- >From: James Craig <james_craig@Powered.com> >To: "'Damian / C64.CH'" <webmaster@c64.ch>, www-html@w3.org >Subject: RE: Image as TableBackground? >Date: Thu, Oct 18, 2001, 10:52 AM > > > use css: > > <table id="foo"> > > then in your css: > > #foo { > background-image:url(image.gif); > } > > > -----Original Message----- > From: Damian / C64.CH [mailto:webmaster@c64.ch] > Subject: Image as TableBackground? > > Is there a replacement for <td background = "image.gif"> in HTML4.0?!? > > Thank > > Damian >
Received on Thursday, 18 October 2001 14:35:39 UTC