I want to upload an image to a img
tag from a css file
The following code is from my HTML
<img class="logo-header" alt="tienda online"/>
and then the CSS
img.logo-header{background: url("../img/centro.jpg");}
my file folders are structured in this way
I can not get the image to load, I do not know if I'm doing something wrong or I must upload the page to a hostinger and place the image in this way
img.logo-header{background: url("https://www.test.com/img/centro.jpg");}
There are more rules in my CSS file, it is ruled out that it is not correctly connected to the style sheet.