The problem is that I have a div class ‘breadcam_bg’ with a url of an image. And in my console, page sees the div, but does not display image
html
<div class="bradcam_area breadcam_bg"> This div!
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="bradcam_text">
<h3>Contact</h3>
</div>
</div>
</div>
</div>
</div>
style.css
.breadcam_bg {
background-image: url(blog/static/blog/img/banner/banner.png);
}
_bradcam.scss
.breadcam_bg{
background-image: url(blog/static/blog/img/banner/banner.png);
}
I guess the url is correct, so I have no idea what is the problem about
2
Answers
The URL to the image must be written in "".
should work then, otherwise you should check if the url is correct and if the page can access the image
I tried your code on my system with my own image it seems to work fine for me
I think the issue is with the url try putting the root url