Hey there, I’m having some issues on displaying a background image for an exercise on my career path.
So, this is my code for the HTML, for the div I want the background image to display. Other styles are working, so there’s no issue on the linking the CSS to the HTML.
<div class="hero_banner">
<h1>Dasmoto's Arts & Crafts</h1>
</div>
.hero_banner {
text-align: center;
height: 80px;
padding: 80px;
background-image: url('resources/images/pattern.jpg');
background-position: center;
background-size: cover;
margin-bottom: 80px;
display: flex;
align-items: center;
justify-content: center;
}
I’ve took a close look into code, but I’d winder why the img is not displaying.
Also, another thing, others images are working but they are being brought thru the HTML.
Thanks in advance.