An example of a white substrate on the background

Top part. A background photo is inserted and black background:#000 url("") no-repeat also registered background:#000 url("") no-repeat . But the background photo ends and the color is not displayed. Do not understand why?

Here is the code - but there is no photo in it, so everything looks correct. But on the original site the background is not displayed

 body { margin:0; padding:0; min-width:960px; max-height:1800px; text-transform:uppercase; font-size:14px; font-weight:bold; font-family:'PT Sans', 'sans-serif'; color:white; background:#000 url("../img/bg.jpg") no-repeat 50% 0%; max-width:1800px; } 
  • one
    If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

1 answer 1

If along with background images you want to set the background color of the element, it is indicated last after the listing.

Source in Russian and in English Mozilla .

In this case, use the background color at the end:

 background: url("../img/bg.jpg") no-repeat 50% 0% #000; 
  • No, it does not work anyway. - Jo-Jo