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
Seth Barthen
11,266 PointsHelp with @font-face!
Hello All!
I'm trying to add a custom font to my title of the page. I thought I entered in the code right, but it still doesn't seem to be working. This is what I have thus far...
@font-face {
font-family: 'potteryb';
src:url('../fonts/potteryb.ttf');
}
.main_title {
font-family: potteryb;
}
I have the .ttf file in that specific location as well. So if anyone could help out I'd appreciate it!
Thanks
1 Answer
Dan Hedgecock
13,807 PointsTry putting the font name in single quotes. '''css .main_title { font-family: 'potteryb'; } '''
Seth Barthen
11,266 PointsSeth Barthen
11,266 PointsNo dice :(