November 16, 201313 yr Hello all. I am having problems trying to get font awesome icons to display properly on my site. They show up fine in IE and Chrome, but in Firefox the only thing that appears is a rectangle where the image should be. I have included all the css and fonts, but they don't seem to show up in Firefox. You can view what I have done so far here. Any help with this would be gratefully appreicated. Thank you.
November 16, 201313 yr Author This is weird. On my local machine, the images do not display. When I put it live they work. This is what it looks like on my local machine. On live the images display fine. Has anyone else come across this before?
November 16, 201313 yr I've seen this when I'm developing locally, turned out to be the path to the FA CSS file that needed a tweak...
November 16, 201313 yr Author I have a folder called font and in that folder I have the font awesome fonts. In the font awesome css I have the following: @font-face{font-family:'FontAwesome';src:url('../font/fontawesome-webfont.eot');src:url('../font/fontawesome-webfont.eot?#iefix&v=3.2.1') format('embedded-opentype'),url('../font/fontawesome-webfont.woff') format('woff'),url('../font/fontawesome-webfont.ttf') format('truetype'),url('../font/fontawesome-webfont.svg#fontawesomeregular') format('svg');font-weight:normal;font-style:normal;}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;} In the head of the index.html I have the following: <!-- **Font Awesome** --> <link rel="stylesheet" href="font-awesome.min.css"> <!--[if IE 7]> <link rel="stylesheet" href="font-awesome-ie7.min.css"> <![endif]--> I'm not sure why it won't work.
November 16, 201313 yr Are you using WAMP/MAMP or just static pages? Either way it may be the FA path, '../font/fontawesome-webfont.eot' may be incorrect so try '/font/fontawesome-webfont.eot' or 'font/fontawesome-webfont.eot' (and repeat for other SRC values!). Edited November 16, 201313 yr by BlueDreamer
November 16, 201313 yr Author Thanks. That worked. I used 'font/fontawesome-webfont.eot' and repeated for the other SRC values.
November 16, 201313 yr i had the same problem i fixed it by not calling font awesome at all in my css
Create an account or sign in to comment