Re: Rendering Tables

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