[Django #7] Tutorial 6
This commit is contained in:
parent
440a372221
commit
0f04c0771d
4 changed files with 12 additions and 0 deletions
BIN
kjg/django/mysite/polls/static/polls/images/background.gif
Normal file
BIN
kjg/django/mysite/polls/static/polls/images/background.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 155 KiB |
BIN
kjg/django/mysite/polls/static/polls/images/background2.png
Normal file
BIN
kjg/django/mysite/polls/static/polls/images/background2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 140 KiB |
8
kjg/django/mysite/polls/static/polls/style.css
Normal file
8
kjg/django/mysite/polls/static/polls/style.css
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
li a {
|
||||
color: green;
|
||||
}
|
||||
|
||||
body {
|
||||
#background-position: center center;
|
||||
background: white url("images/background2.png") no-repeat fixed center center;
|
||||
}
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
{% load static %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}">
|
||||
|
||||
{% if latest_question_list %}
|
||||
<ul>
|
||||
{% for question in latest_question_list %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue