I have been trying to get a background image to work in my stylesheet, but
have not had success. It works fine with style tags in the html doc but
putting it in the css file doesn't work. All other css code in the css
file works, ergo I have come to the conclusion that this is a software
bug.
Both of these formats I have tried in the stylesheet to no avail:
body {
background-image:
url("home/billwagner3/webapps/project_vault/Kitchen.jpg");
background-repeat: no-repeat; background-attachment: fixed;
}
and..
body {
background-image: url('{% static "Kitchen.jpg" %}');
background-repeat: no-repeat; background-attachment: fixed;
}
The latter works in the html doc by the by.
All other code in the css file, as I mentioned earlier, works except for
this. All other css files (all in the designated static_files directory)
are fully functioning as well. It's just this one property--background-
image, that will not work when couched in a css file.
--
Ticket URL: <https://code.djangoproject.com/ticket/26531>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
Sorry, but this ticket tracker isn't a support channel (see
TicketClosingReasons/UseSupportChannels). That said, this question isn't
Django related, so you might have more success asking somewhere other than
in Django's support channels.
--
Ticket URL: <https://code.djangoproject.com/ticket/26531#comment:1>