#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.
Change History (1)
comment:1 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.