You are here: Re: TR background versus TABLE « HTML « IT news, forums, messages
Re: TR background versus TABLE

Posted by Alan J. Flavell on 11/18/17 11:31

On Tue, 8 Nov 2005, Jonathan N. Little wrote, quoting me:

> I would argue that Opera and MSIE behavior is incorrect,

To be honest with you, so would I. But I was reluctant to leap to
conclusions without pausing to see whether I was perhaps missing
something.

> Opera and MSIE are displaying 'inherit' behavior

Nicely put. Indeed, if Mozilla is told to apply "inherit" to the
td style, then its behaviour is the same as Opera and MSIE.

> which is incorrect.

Right - the defaults for the td are specified to be color transparent,
and background image none.

The problem, I feel sure, is that <tr> is somehow being processed as a
special kind of object, which never actually comes to light in its own
right, since it cannot contain naked content - only <td> and <th>
elements. (There have been more crass examples of CSS failures in
relation to table elements in earlier browser/versions, you might
recall.)

That's kind-of understandable in HTML terms - but I can't think that
such processing can be correct in CSS terms, any more than the failure
to inherit text sizing etc. into the table in earlier browser
versions, which has now (I think) been generally corrected (? at least
in standards modes ?). Sorry, I do have a day job as well, and don't
always manage to keep up with these details.

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

That's what I meant, indeed. Sorry I didn't explain it clearly the
first time.

cheers

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация