they ALL use the same style sheet. How can it be that it works in one directory and not the other? CSS files load resources relative to the stylesheet and not the file, correct ?
Why does this work on Chrome but nowhere else?
The font is not appearing on either page for me in Firefox. I prefer to eliminate the guesswork with URLs by just using root-relative paths. I changed your paths to root relative and the fonts work fine that way, so go to your fonts.css file and change this (in red):
I was able to find out that Firefox uses truetype through trial and error.
I CHANGED ALL OF THEM TO /fonts/ BUT it only works in the site root in Firefox and IE. the [/LEFT]http://getunrefined.com/blog/ font loading fails in Firefox and IE. This is drivng me nuts ! I even tried absolute urls . nothing works. [LEFT][COLOR=#464646]
Hm, bizarre. It doesn’t work in FF, unless I go into Firebug and just click on the styles to edit them - without actually changing anything! But at that point the font loads. Really odd. Not sure what to suggest.
Ok one last thing, then I’ll leave you alone (appreciate the help, this is why I’ve been a member of SitePoint for nine years).
In Firebug console, I’m “tampering” with the font by going to “live edit” or whatever it’s called… can’t get the “presto” change you’re getting. That may be the RosettaStone for figuring out how to fix. May be a loading / DOM issue.
Can you tell me what you’re doing in Firefox to get it to change in real time? Thanks.
It’s really bizarre, but what I do is open firebug, click on the CSS tab, then on the line below choose fonts.css, then top left choose Live Edit, then delete the first / and type it in again, and the fonts appear. Earlier I was editing what I thought was wrong paths and the fonts would appear, so I didn’t realize it was the fact that I was editing the styles that was making the fonts appear, rather than it being the file path that was causing it. Very odd. I recently set up FontSquirrel styles like this and they work fine, and they are exactly the same as what you’ve done, from what I can see.
I’m just wondering if you managed to solve this issue? I am having a similar problem with the same font. Even more bizarrely, the font shows up fine when I type my url omitting the www - but disappears if I include the www portion. (This is on Firefox 9 for Mac). Very frustrating!
As a rule of thumb, and this is personal opinion – if you have to say …/ in your url’s inside the CSS, you have the files in the wrong place. Pathing “up-tree” is a sure indicator that there’s something fundamentally flawed with your directory structure…
Which is why usually I put files that would be called by my CSS in a subdirectory of where said CSS is located… then you don’t have to path it at all as it’s all “down-tree”.
See my normal directory structure for sites:
\ – HTML files and/or main PHP file. (usually the only file here is index.php and a htaccess, routing ALL requests through my single index.php)
\DOWNLOADS – self explanatory
\IMAGES – images that are CONTENT, aka belong in the HTML
\THEME – CSS files, template.php files
\THEME\FONTS – fonts included from the CSS
\THEME\IMAGES – images that are presentation, not content.
It’s a detail people often miss about CSS – it’s root directory is based on where the CSS file is located, NOT where the HTML calling it is. (unlike applets or javascript which use the same location as the calling HTML as their root).
It just makes it easier to test and to keep things portable to make sure everything ‘cascades down’ instead of constantly trying to point ‘up’ or absolutely… of course a lot of your off the shelf CMS shove bad directory structures down your throat… like wordpress… like joomla. Goes hand in hand with all the other bad practices they treat as the norm like dozens of separate CSS files, CSS inlined in the markup, and hundreds of K of javascript for nothing or broken inaccessible animated nonsense.
Like the broken menu appearing over the heading on your site… that doesn’t even work for people with scripting disabled.