[Django] #26531: background-image not working in stylesheet

6 views
Skip to first unread message

Django

unread,
Apr 22, 2016, 6:38:19 PM4/22/16
to django-...@googlegroups.com
#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.

Django

unread,
Apr 22, 2016, 8:15:29 PM4/22/16
to django-...@googlegroups.com
#26531: background-image not working in stylesheet
-------------------------------------+-------------------------------------
Reporter: billwagner3 | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.9
Severity: Normal | Resolution: invalid
Keywords: background-image, | Triage Stage:
css, static-files | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* 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>

Reply all
Reply to author
Forward
0 new messages