mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +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 a94fd8a8d9
from master
This commit is contained in:
parent
ea0dc5df09
commit
35cbb0baf4
1 changed files with 2 additions and 2 deletions
|
@ -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::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue