Python Stripped CSS Background Image Calls

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue Jul 25 01:27:49 EDT 2006


In <1153800112.281524.171410 at b28g2000cwb.googlegroups.com>, JenAsh wrote:

> In my python file I have several css calls--they all works except for
> the background image CSS call.
> 
> .mystyle { background-image:
> url(http://www.mysite.com/images/background.gif); }
> 
> When I try to view it in the browser the code is somehow stripped. I
> only get the following:
> 
> .mystyle { }
> 
> How can I get Python to ignore the codes? Sort of like cdata in XML.
> Sorry I am very unfamilar with Python.
> 
> Can anyone explain?

Can you explain in a little more detail what you are doing?  Python
doesn't know about CSS  and it's illegal syntax to just write CSS into
Python programs.  I guess there's a web framework involved?  Or CGI?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list