In the background-image , the second url does not work - url("Images/color.jpg") .

The file path is correct. What could be the reason?

  *{ padding: 0; margin: 0; } .header{ width: 100%; height: 80px; border: 1px solid black; background-image: url("images/Logo-Blog_76.png"), url("Images/color.jpg"); background-repeat: no-repeat, repeat; background-position: center; background-size: 1600px 160px; } 
  <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="css/my.css"> <title>mysite</title> </head> <body> <div class="header"> </div> </body> </html> 

  • It does not work exactly the 2nd color.jpg. The implication is that it should be under Logo-Blog_76.png. - Artashes Muradyan
  • one
    register "images" and "Images", the right way? - Alex
  • Yes, I tried every Logo-Blog_76.png works without problems - Artashes Muradyan

1 answer 1

Remove background-size: 1600px 160px; Everything will appear.

  • one
    Removed and earned! - Artashes Muradyan
  • The best option on the site is not to write what works and mark it as a suitable solution, but against the answer;) - Ruslan Semenov
  • Please describe in more detail how to do this) - Artashes Muradyan
  • one
    ru.stackoverflow.com/help/accepted-answer ie in front of my answer should be noted and not on its own. - Ruslan Semenov
  • click the check mark to the left of the card - ishidex2