Thanks all...
@Sujara own worked for me
On Fri, Jul 17, 2020, 6:07 AM Sujata Aghor wrote:
> I set background image like below in the style tag of the html page. It
> works !
>
>
>body{
> background: url({% static 'users/img/bg/name_of _image.png'%})
> no-repeat center center fixed;
>
I set background image like below in the style tag of the html page. It
works !
body{
background: url({% static 'users/img/bg/name_of _image.png'%})
no-repeat center center fixed;
-webkit-background-size:cover;
-moz--background-size:cover;
-o--background-size:cover;
backgro
i encounter alot shit when adding static to a url background images,django
templates can be shitty sometimes,because sometimes it wont pick up due to
some spacing ,its very annoying,here is what i do either i write the same
code by myself again beneath it but mostly it always worked by copying
Try it
url(" static 'some_path/image.png' ")
On Fri, 17 Jul 2020, 4:38 am sunday honesty,
wrote:
> Hi django users, pls help me with this:
>
> In case we supply background image via the url() function as
> background-image: url("some_path/image.png")
>
> How do we do this in django static files
Hi django users, pls help me with this:
In case we supply background image via the url() function as
background-image: url("some_path/image.png")
How do we do this in django static files?
I tried
url("{% static 'some_path/image.png' %}")
but it didn't work, how do I do this pls?
--
You rece
5 matches
Mail list logo