Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Basics (2014) Enhancing the Design With CSS Web Fonts with @font-face

Hanane Ladj
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Hanane Ladj
Front End Web Development Techdegree Graduate 15,686 Points

I am not able to see the abolition regular web fonts on my main heading when, I refresh the page.

I followed the video and didn't see any mistake on my workspace, but the @font-face hasn't changed when i refresh the page. can anyone help me with this please?

4 Answers

Hello Hanane,

Please share your code in order to help you better. You can do this by taking a snapshot of your code by clicking the camera icon in the top right of your workspace. You can then copy and paste the URL in your question for us to link to.

Here is some of my code from this video for comparisons:

@font-face {
  font-family: 'Abolition Regular';
  src: url('../fonts/abolition-regular-webfont.eot');
  src: url('../fonts/abolition-regular-webfont.eot?#iefix') format('embedded-opentype'),
       url('../fonts/abolition-regular-webfont.woff') format('woff'),
       url('../fonts/abolition-regular-webfont.ttf') format('truetype');
}

h1,
h2 {
  font-family: 'Abolition Regular', Helvetica, Arial, sans-serif;
}

Hope this helps. :)

Mark Casavantes
Mark Casavantes
10,619 Points

Good Morning Hanane,

If you post your code, we can take a look at it. Different web browsers treat code differently. Try running your code on a different browser to see if your code is treated differently. This might not be the answer you are looking for.

Thank you,

Mark

Hi Hanane,

For some reason this link is not opening up the workspace on my end. Could be something wrong on the back-end of Treehouse perhaps. Try taking another snapshot and share the new link if you wish. Otherwise I know the code I posted works. See if maybe it's just a minor spelling mistake or syntax error. :)

Of course you can always copy, paste and markdown your code here, much like my example above. Check the link below for additional help. :)

https://teamtreehouse.helpscoutdocs.com/article/53-markdown-cheatsheet

Mark Casavantes
Mark Casavantes
10,619 Points

Good Afternoon Hanane,

I feel your level of frustration in getting your question answered. I may not have the solution, but I fear you do not have the abolition font on your computer. https://www.pcmag.com/how-to/how-to-manage-your-fonts-in-windows-10#:~:text=View%20Installed%20Fonts,displays%20all%20the%20installed%20fonts. The above link may be helpful to you to check if you have a font on your computer. If you do not have the font, you need to download it onto your computer. I hope others help you with your question.

Thank you,

Mark