I have a basic flask app, where I reference background images in my css file like this
.three {
background:url('/static/images/house.jpg');
}
My folder organization is like this:
project
app.py
-static
-images
house.jpg
-css
index.css
-templates
index.html
How do I get my css to properly call the image?
change your css to this, and then try again:
.three {
background-image: url('images/house.jpg');
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With