CSS

Victor Rebello
Victor Rebello
2,322 Points

font not changing?

The font in h1 and h2 are not changing to "abolition regular". can any1 help? https://teamtreehouse.com/workspaces/35369802

Lee Vaughn
Lee Vaughn
Treehouse Project Reviewer

That link isn't working.

Try posting your code following the instructions in this post: https://teamtreehouse.com/community/posting-code-to-the-forum

2 Answers

Victor Rebello
Victor Rebello
2,322 Points
@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');

}
* {
  box-sizing: border-box;
}

body {
  color: #878787;
  margin: 0;
  font: 1em/1.5 "Helvetica Neue";
}
h1,h2 {
  font-family:'abolition regular',Helvetica, Arial, sans-serif;

}

Hi, can you check your chrome console? Maybe you didn't load the font correctly.