summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial06.txt
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2022-03-08 05:28:56 +0000
committerGitHub <noreply@github.com>2022-03-08 06:28:56 +0100
commit76fda7729e4cdfec715cd92b2c80d851797b05f7 (patch)
tree70617fe20334bfcfa37641ea15f6fa5c9d03232e /docs/intro/tutorial06.txt
parent58d357fc65ab0d3b16184db81059b9cef3b83c10 (diff)
Clarified that tutorial background image should be self-provided.
Diffstat (limited to 'docs/intro/tutorial06.txt')
-rw-r--r--docs/intro/tutorial06.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/intro/tutorial06.txt b/docs/intro/tutorial06.txt
index f0087f8905..b21ae4ed77 100644
--- a/docs/intro/tutorial06.txt
+++ b/docs/intro/tutorial06.txt
@@ -94,17 +94,19 @@ Adding a background-image
=========================
Next, we'll create a subdirectory for images. Create an ``images`` subdirectory
-in the ``polls/static/polls/`` directory. Inside this directory, put an image
-called ``background.gif``. In other words, put your image in
-``polls/static/polls/images/background.gif``.
+in the ``polls/static/polls/`` directory. Inside this directory, add any image
+file that you'd like to use as a background. For the purposes of this tutorial,
+we're using a file named ``background.png``, which will have the full path
+``polls/static/polls/images/background.png``.
-Then, add to your stylesheet (``polls/static/polls/style.css``):
+Then, add a reference to your image in your stylesheet
+(``polls/static/polls/style.css``):
.. code-block:: css
:caption: polls/static/polls/style.css
body {
- background: white url("images/background.gif") no-repeat;
+ background: white url("images/background.png") no-repeat;
}
Reload ``http://localhost:8000/polls/`` and you should see the background