Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Foundations Web Typography Web Fonts

Lisa Kingston
Lisa Kingston
2,333 Points

Icon not showing on Chrome

I keep getting the fallback rectangle displayed for the icon font. Checked the html & CSS...everything is identical to Guil's code. Anyone else run into the same issue??

Can you post the code from both files?

1 Answer

Lisa Kingston
Lisa Kingston
2,333 Points

Hey Dustin, thanks for your reply. I've got the icon font in my local directory.

Here is the css:

@font-face {
  font-family: 'icomoon';
  src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
    url('fonts/icomoon.woff') format('woff'),
    url('fonts/icomoon.ttf') format('truetype'),
    url('fonts/icomoon.svg#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;

and the rule:

.wrap:before {
    content: "\e000";
    font-family: "icomoon";
    font-size: 1.9em;

I'm not sure if you use Dropbox but sometimes that's a little easier to zip a project and upload to.