Link to external css & fonts on a server

136 views
Skip to first unread message

Christopher Finazzo

unread,
Apr 17, 2013, 11:08:02 AM4/17/13
to web-au...@googlegroups.com
I'm trying to use @font-face in CSS to link to custom fonts that I have on my server. When I visit the site, everything looks fine, but I keep getting 404 responses in the Web Inspector when the site tries to load the fonts. I put them in a directory named fonts located at `example.com/fonts` but the source shows it coming from the css directory, which makes no sense. In addition I see CSS displayed in a <style> tag that actually resides in an external file. 

Back when I used Dreamweaver, I never had this issue because it allowed you to specify a directory structure on the server for deploying your site, but BBEdit provides no such option that I'm aware of. This option may exist when you create a Project, but I'd rather not use that if I don't have to. I'm sure there is something really basic I'm missing about how to link to files locally versus on a remote server, but at this point I'm stuck.

Any ideas?

Kerri Hicks

unread,
Apr 17, 2013, 11:35:59 AM4/17/13
to web-au...@googlegroups.com
It's hard to be sure what you're really doing here without being able to look at the code/pages. Do you have a link we could check out? If it's working, are you really just trying to debug the Safari Web Inspector?

BBEdit does have a "deploy site" option (new in 10.5), via a new menu in the project window’s action bar (so yes, you'd have to use projects, but that's how Dreamweaver did it, too, IIRC, project by project).

--Kerri


--
You received this message because you are subscribed to the Google Groups "Web Authoring" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web-authorin...@googlegroups.com.
To post to this group, send email to web-au...@googlegroups.com.
Visit this group at http://groups.google.com/group/web-authoring?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Christopher Finazzo

unread,
Apr 17, 2013, 2:31:37 PM4/17/13
to web-au...@googlegroups.com
If you want to look at it, the site is over here. I checked it again and the problem appears to be gone, so I think it may be some sort of weird caching effect. I am doing a few things on the server side to speed things up, with the side affect that it shoves weird stuff on the end of some filenames, but that doesn't seem to be affecting what gets rendered.
Reply all
Reply to author
Forward
0 new messages