>> I'm working on a pylons project, and we have users trying to host the
>> web-app under a non-root path (i.e. host it at '/myapp/' rather than at
>> '/'). We've been pretty good about using 'h.url_for' to generate links in
>> our jinja2 templates, so most things work as expected. However, our CSS file
>> has paths to icons, background images etc. Since these are served as static
[...]
>>
>> Any ideas?
>>
>
> Can you just make the paths in your stylesheets relative?

This works for me:
    background: url(../img/logo.png);

while having project files
project/project/public/css/main.css
project/project/public/img/logo.png

--
Petr

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to