marain
07-31-2012, 12:56 AM
A moderator pointed out a css error in the following code:
[CODE]
<style type="text/css">
.intro{
position:absolute;
left:0;
top:0;
layer-background-color:#ffff00;
/* #ffff00 = yellow */
background-color:black;
border:8.0px solid blue;
z-index:10;
}
</style>
[CODE]
Acting on his suggestion, I will be eliminating the layer-background-color line (not w3c approved), and substituting w3c-approved background-color: #ffff00; in the background-color line. So far, so good. But verily one thing puzzles me: The background on the page in question displayed as yellow (which is happens to be the color I wanted). However, the w3c-accepted parameter specified "black". Further, the background-color line * followed * the layer-background-color line. Given those facts, I do not understand why the background color actually displayed the yellow that I wanted, rather than black. And this was so both in Firefox and Explorer.
A.
[CODE]
<style type="text/css">
.intro{
position:absolute;
left:0;
top:0;
layer-background-color:#ffff00;
/* #ffff00 = yellow */
background-color:black;
border:8.0px solid blue;
z-index:10;
}
</style>
[CODE]
Acting on his suggestion, I will be eliminating the layer-background-color line (not w3c approved), and substituting w3c-approved background-color: #ffff00; in the background-color line. So far, so good. But verily one thing puzzles me: The background on the page in question displayed as yellow (which is happens to be the color I wanted). However, the w3c-accepted parameter specified "black". Further, the background-color line * followed * the layer-background-color line. Given those facts, I do not understand why the background color actually displayed the yellow that I wanted, rather than black. And this was so both in Firefox and Explorer.
A.