Python Stripped CSS Background Image Calls

J

JenAsh

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?
 
M

Marc 'BlackJack' Rintsch

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
 
J

JenAsh

Thanks Marc,

Yes, there is a web framework, basically the CSS is used as the layout
wrapper of the Python script. It is a include call within the Python
script.
 
B

Bruno Desthuilliers

JenAsh said:
Thanks Marc,

Yes, there is a web framework, basically the CSS is used as the layout
wrapper of the Python script. It is a include call within the Python
script.
Then first post to this framework's mailing list, or to the author.
FWIW, there are few chances you get any useful answer on a unspecified
web framework here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top