#26531 closed Bug (invalid)
background-image not working in stylesheet
Reported by: | billwagner3 | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.9 |
Severity: | Normal | Keywords: | background-image, css, static-files |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have asked on stackoverflow and searched for anyone else with this issue in django-users and have not found anything.
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.
Sorry, but this ticket tracker isn't a support channel (see TicketClosingReasons/UseSupportChannels).