{{{
body {
background: white url("images/background.gif") no-repeat right bottom;
}
}}}
However, this css is for the body tag, and the tutorial never defined any
body tags for the index.html template. So the resulting rendered page
doesn't have a body tag and the background image doesn't load. It looks
like a mistake in the tutorial to me!
--
Ticket URL: <https://code.djangoproject.com/ticket/27872>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Tim Graham):
As far as I know that has always worked -- browsers usually add an
implicit `<body>` even if you don't include one. Which browser are you
using?
--
Ticket URL: <https://code.djangoproject.com/ticket/27872#comment:1>
* status: new => closed
* resolution: => invalid
Comment:
Yes, you are indeed right. It was completely my bad. I created
background.png instead of background.gif (who uses gifs except for
animations anyway? :D), but I of course forgot to rename it in the
.css.... So all is working as expected. Though it is slightly confusing
defining a css for <body> but not having/setting any <body> tags - maybe
you can decide whether it would be sensible to add a hint to the tutorial.
Thanks and sorry for the noise!
--
Ticket URL: <https://code.djangoproject.com/ticket/27872#comment:2>