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 trialJeff Jones
3,928 Pointsinline CSS
Hi! I'm trying to figure out inline CSS. I am currently working on a practice website, and I want to turn an h1 into a different font. I've been trying to use inline CSS, but it isn't changing anything on my practice page. One of the fonts I want to use is something I downloaded on google called Vampire Holocaust (my site if for Halloween). Supposedly, I'm supposed to type in the 'font-family' into the inline CSS, but I can't figure out what the font family for a new font I downloaded on the web. Can you please help me? If you need further clarifications on my question, just ask! Thanks
1 Answer
KRIS NIKOLAISEN
54,971 PointsI downloaded the font Zombie_Holocaust.ttf then followed the instructions here under: How to add custom fonts to your website using @font-face.
I used a workspace for testing with a snapshot here. Since you wanted inline I copied the code from the generated stylesheet (from step 2) to index.html then styled h2 with inline css.
At least it's a start. The other code is from a challenge and can be ignored. Sorry if it's confusing but if you have questions please ask.
Jeff Jones
3,928 PointsJeff Jones
3,928 PointsSo helpful! Thanks!