|
Posted by Jonathan N. Little on 12/01/65 11:31
Alan J. Flavell wrote:
> On Tue, 8 Nov 2005, Jonathan N. Little wrote:
>
>
>>Applied to TR works in Gecko, but if you apply background-image to
>>TABLE works in the three.
>
>
> Sure; but you don't then have the option to use different images
> on different rows.
>
>
>>The TR element can take a STYLE parameter
>>so I assume it should work and therefore Gecko would be correct.
>
>
> But we don't have a clear definition of "work". It *does* use the
> image as a background - but Opera and MSIE aren't using the image in
> the way that the O.P would like.
>
I would argue that Opera and MSIE behavior is incorrect, because the
image is applied to the containing element TR and if child elements TD
have no background-image defined (since initial is supposed to be
'none') the TR background-image should show through undisturbed. Opera
and MSIE are displaying 'inherit' behavior which is incorrect. This is
akin to applying a background-image to the BODY, child P's with no
background-image specified should not inherit the background-image but
let the image show through undisturbed, right?
>
>>Now if you apply the background-image to TABLE you can blank it out
>>non-header row by have a class with a flat color image for the
>>background,
>
>
> Sure; but specifying a colour and no image would surely be as
> effective?
background-color, yes; background-image, no.
background-image: none' means no image for element so what's beneath
shows through, it does not mean erase image
>
>
>>But I bet the OP real purpose if a table layout where he would be
>>better served using DIVs and a more flexible layout....
>
>
> Certainly a URL would have been useful, as always. Which is why I
> made one myself, in the hope that the O.P would at least challenge it
> - possibly even produce one which showed what they really meant.
A very common problem, it is always more helpful if we do not have to
divine the OP's intentions!
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|