- From: Tim Bagot <tsb-w3-style-0004@earth.li>
- Date: Thu, 25 Apr 2002 07:24:48 +0000 (UTC)
- To: <www-style@w3.org>
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