So, I’ve basically completed the project, but one singular thing just isn’t working for some reason.
Inserting an image in the background of the banner at the top of the page.
At first I thought it was because I was using an “img.webp” for the picture vs .jpeg (or something similar), but all the other images work find with that so I no longer think its that.
I’m doing this project with Visual Studio Code on my laptop, so I’m not really sure how to share the entire code, but the relevant parts are:
html:
<div class= "banner">Dosmoto's Arts & Crafts</div>
CSS:
.banner {
font-family: Arial, Helvetica, sans-serif;
font-size: 100px;
font-weight: bold;
color: khaki;
text-align: center;
background-image: url("./resources/images/pattern.webp");
}
I can’t for the life of me figure out why it’s not working. I’ve tried using
instead of
The rest of the included .banner CSS code works fine, it’s just the background-image that isn’t working.
Any help would be GREATLY appreciated. I’m going a little crazy at this point.