Re: Valid and center
- From: "Jukka K. Korpela" <jkorpela@xxxxxxxxx>
- Date: Sat, 27 Dec 2008 01:45:33 +0200
dorayme wrote:
What is this transparent colour going to let shine through? There is
no element above body that has a background to show through.
Perhaps not in this instance, you are right. But it might have been
the queer beast, the HTML element.
It is there in every instance. In HTML, the body element is always a child of the html element (even when the <html> _tag_ is not used). All elements always have all properties, though not all of them take effect.
transparent is default and so
perhaps unnecessary to put it in.
The initial value of the background-color property is transparent, but this does not mean that it is the default value that will be used in the absence of any explicit style ***. It can be just anything, by browser defaults, browser settings, or by browser style ***. Moreover, your style *** may need to play with another style ***, such as a user style ***.
Thus, setting background-color to transparent is not redundant. But it means that the background of the parent element be used, and who knows what _that_ is?
Anyway, there is always the browser background
That's a bit vague expression. The canvas may have a background, but the important thing is that the html element has the background-color property.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
.
- Follow-Ups:
- Re: Valid and center
- From: dorayme
- Re: Valid and center
- References:
- Valid and center
- From: drum118
- Re: Valid and center
- From: rf
- Re: Valid and center
- From: dorayme
- Valid and center
- Prev by Date: Re: columns or second, third... child
- Next by Date: Re: Valid and center
- Previous by thread: Re: Valid and center
- Next by thread: Re: Valid and center
- Index(es):
Loading