Re: using css with nevow

Vincent Bernat <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Organization One Piece
Message-ID <[email protected]>
OoO En ce doux début de matinée du mercredi 28 octobre 2009, vers 08:45,
Eric Medina <[email protected]> disait :

> body {
>     background: #EEE url(img/bg.gif);
>     color: #444;
>     font: normal 62.5% "Lucida Sans Unicode",sans-serif;
>     margin: 0;
> }

[...]

> class TestPage(rend.Page):
>     addSlash = True
>     child_images = static.File('img')
>     children = {'default.css': static.File('default.css')}
>     docFactory = loaders.xmlfile('webtest.html')

In  CSS,   you  should  use  url("images/bg.gif")   because  you  define
child_images (and not child_img).
-- 
panic("esp_handle: current_SC == penguin within interrupt!");
	2.2.16 /usr/src/linux/drivers/scsi/esp.c

_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.