I have a problem, I'm trying to insert a background image using the background-image
property, I did it in the following way:
<div class="container-fluid bg-img"></div>
and CSS
.bg-img {
width: 100%;
height: 100%;
background-image: url("../img/primary.jpg");
background-repeat: no-repeat;
background-size: cover;
background-color: gray;
}
But nothing appears, when I put a word inside the div that contains the class because a bottom line appears, as if it were not taking the width and the height. What I can do? Thank you very much!