1
0
mirror of https://github.com/django/django.git synced 2025-04-19 06:44:36 +00:00

[2.0.x] Used a CSS positioning in tutorial 6 that doesn't differ across browsers.

Otherwise in Firefox, the <html> and <body> elements take just as much height
is needed for the content and so the image doesn't appear at the bottom of the
window.

Backport of a94fd8a8d9ee02f4abd872fb2b7509c19ac5d44e from master
This commit is contained in:
Roger Erens 2018-02-21 18:07:24 +01:00 committed by Tim Graham
parent ea0dc5df09
commit 35cbb0baf4

View File

@ -92,11 +92,11 @@ Then, add to your stylesheet (``polls/static/polls/style.css``):
:filename: polls/static/polls/style.css
body {
background: white url("images/background.gif") no-repeat right bottom;
background: white url("images/background.gif") no-repeat;
}
Reload ``http://localhost:8000/polls/`` and you should see the background
loaded in the bottom right of the screen.
loaded in the top left of the screen.
.. warning::