There is such a problem: I've been trying to put a picture-background on a div for a week already. But nothing is displayed in the browser. Because of this, I can not put the project. Why does not it work?
.game1 { width: 100%; height: 450px; background-image: url("screenshot.jpg"); background-repeat: no-repeat; background-size: cover; } <div class="game1"> <p class="name"> Бла </p> <p class="description"> Бла <br> бла <br> бла бла бла! </p> <br> <br> <br> <a href="games/radiation.php"> <button id="b1"> Перейти </button> </a> </div> <br> <br> <br> <br> I put the picture in the root of the site, in the folder with CSS , and uploaded it to the server, wrote the URL via http , does not work.