#26531: background-image not working in stylesheet
-------------------------+-------------------------------------------------
Reporter: | Owner: nobody
billwagner3 |
Type: Bug | Status: new
Component: | Version: 1.9
Uncategorized |
Severity: Normal | Keywords: background-image, css, static-files
Triage Stage: | Has patch: 0
Unreviewed |
Easy pickings: 0 | UI/UX: 0
-------------------------+-------------------------------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/26531>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/054.cd4586acf3a20d329536dbaf1e8de0ee%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.