Css фоновое изображение не появляется - PullRequest
0 голосов
/ 17 июня 2020

Я пытаюсь создать веб-сайт с помощью Dreamweaver и Visual Studio. Проблема в том, что когда я использую фон или фоновое изображение в CSS, изображение не появляется.

Вот код:

CSS / Showcase /

.showcase{
    min-height: 400px;
    background-image:url("../Take2/assets/bg.jpg") no-repeat -400px;
    text-align: center;
    color: aqua;
}

Html:

<section class="showcase">
        <div class="container-fluid">
          <h1>Rent a <span>Ring Roamer</span></h1>
<p>Tired of the same old photo booth?<br>
 Let our Ring Roamer, Roamer attendant come to you on the Dance Floor or at their tables!<br>
Our Ring Roamer will capture photos of your guests, photos get shared via social media.<br>
The Ring Roamer is awesome because it is on the GO!<br>
The Ring Roamer Selfie Booth has many fun features including Boomerang videos, animated GIFs, and virtual filters.<br>
Your guests will be able to share their experience instantly.</p>
        </div>
</section>

1 Ответ

0 голосов
/ 17 июня 2020

Причина этого в том, что вы используете no-repeat -400px

Когда вы удалите часть без повтора, изображение будет успешно отображаться.

Вот так: background-image: url("../Take2/assets/bg.jpg")

Надеюсь, это поможет.

...