#body div#statusbox_failure {
background-image: url("../images/icon_failure.png");
background-color: #FFFAF1;
border: 1px solid #D2A960;
}
#body div#statusbox_failure {
background: #FFFAF1 url("../images/icon_failure.png");
border: 1px solid #D2A960;
}
That's only true if you set both using separate "background" properties:you specify the color after the image, the browser will use the parameter that comes last in the list and apply.
#body div#statusbox_failure {
background: url("../images/icon_failure.png");
background: #FFFAF1;
border: 1px solid #D2A960;
}
#body div#statusbox_success, div#statusbox_failure {
background-attachment:fixed;
background-position:left center;
background-repeat:no-repeat;
color:#000000;
font-family:Verdana,Geneva,sans-serif;
font-size:13px;
height:100%;
line-height:normal;
margin:10px 8px 13px;
padding:20px 20px 20px 60px;
vertical-align:middle;
}
#body div#statusbox_success, div#statusbox_failure {
background-position:left center;
background-repeat:no-repeat;
color:#000000;
font-family:Verdana,Geneva,sans-serif;
font-size:13px;
height:100%;
line-height:normal;
margin:10px 8px 13px;
padding:20px 20px 20px 60px;
vertical-align:middle;
}
You could have if you created a minimal test case or used a CSS debugger, such as Firebug, Firefox's DOM inspector or Safari 4's debugger. It's easiest to selectively disable style rules in Safari 4.Thanks! I would not have figured that out myself
Yes.Does that mean with the background attachment set to fixed, the image was fixed at left: 0; top: 50%; relative to the window rather than the element?