W3C home > Mailing lists > Public > www-style@w3.org > April 2002

Rendering Tables

From: Nicholas Atkinson <nik@casawana.com>
Date: Thu, 25 Apr 2002 00:36:51 +0100
Message-ID: <005801c1ebec$26b5c360$0300000a@natkinwkstn>
To: <www-style@w3.org>
Hi there, I have a question about rendering tables.  

Given the following snippet:

<table style="background: red;">
   <caption>Table Caption</caption>
   <tr>   
   <td><p>Cell</p></td>
   <td><p>Cell</p></td>
   <td><p>Cell</p></td>
   </tr>
 </table>

The background of the cells will be red.  But should the background of the caption be red?

In all the browsers I have tried the background of the caption is not red.  Yet, I would expect the caption to inherit this property from its parent element, "table".  Is this correct?

nik
Received on Wednesday, 24 April 2002 20:01:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:14 GMT