Answers for "how to give background image url in django"

3

background image css django

#third{
     background: url("/static/img/sample.jpeg") 50% 0 no-repeat fixed;
     color: white;
     height: 650px;
     padding: 100px 0 0 0;   
     }
Posted by: Guest on July-10-2020
1

add background image in django uploaded file

{% load static %}
     <img src="{% static "my_app/example.jpg" %}" alt="My image"/>
Posted by: Guest on December-21-2020

Code answers related to "how to give background image url in django"

Python Answers by Framework

Browse Popular Code Answers by Language