relative url in css have to work, have nothing to do with web2py.
My files are:
static/css/myfont.eot
static/css/layout.css
My def:
src: url('myfont.eot');
My files are:
static/css/fonts/myfont.eot
static/css/layout.css
My def:
src: url('fonts/myfont.eot');
2011/11/30 monotasker <[email protected]>
> I'm trying to use an embedded font referenced in a stylesheet. The only
> url that seems to work in the @font-face declaration (in my css file) is
> one that begins with the appname: /[appname]/static/[font folder]. It
> seems, though, like I can't generate the URL programmatically (with the URL
> helper) in the css file. So is there a relative address that will work?
>
> It just occurred to me that the problem might be my use of the less.js css
> processing script. Could the URL helper not be working because it conflicts
> somehow with less.js?
>
--
http://martin.tecnodoc.com.ar