[Solar-talk] CSS with image urls
Andreas Ravnestad
andreas.ravnestad at gmail.com
Sun Dec 24 04:04:38 PST 2006
On 12/24/06, Antti Holvikari <anttih at gmail.com> wrote:
>
> Hi All, and merry christmas!
>
> I use url() in my CSS to load background-images. Obviously I need to
> hard-code the urls since those CSS files don't go through PHP parsing
> so that I could use view helpers to load proper urls. Have any of you
> had similar problems and/or solved this somehow? Any ideas? All my
> ideas at this point are pure hacks... :-)
Merry christmas!
I usually just use relative url's like this: url('/path/to/style.css'). If
you need absolute urls, you could inline your css in a template and get the
absolute url from config, possibly. What hacks have you tried?
-AR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.killersoft.com/pipermail/solar-talk/attachments/20061224/c66c4e8c/attachment.htm
More information about the solar-talk
mailing list