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

Re: Rendering Tables

From: Tim Bagot <tsb-w3-style-0004@earth.li>
Date: Thu, 25 Apr 2002 07:24:48 +0000 (UTC)
To: <www-style@w3.org>
Message-ID: <Pine.LNX.4.33.0204250719150.1081-100000@213-152-38-96.dsl.eclipse.net.uk>
At 2002-04-25T00:36+0100, Nicholas Atkinson wrote:-

> <table style="background: red;">
>    <caption>Table Caption</caption>

> 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?

No. The background property is not inherited. The table and caption have
separate boxes (within a containing anonymous box) with their own content
and padding areas, and therefore their own backgrounds (which default to
transparent, of course).

Tim Bagot
Received on Thursday, 25 April 2002 03:25:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:01 UTC