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

HTML How to Make a Website Customizing Colors and Fonts Pick Fonts and Set Relative Units

rajbee
rajbee
6,657 Points

The position of font css should be before main.css.

The position of font css should be before main.css. Your reason: "It won't know what we are talking about". What is the "IT" here ? Is it the browser ?

2 Answers

If you're main.css file is using fonts specified in your font.css file (in an @fontface declaration for example), those fonts won't load unless font.css is listed first in your index.html file. This is because your browser loads stylesheets from first listed to last.

rajbee
rajbee
6,657 Points

Thanks for the great answer. So far tree house seems ok.

If you don't mind, did you learn web development etc. using only treehouse or did you use other resources as well ? To avoid putting other companies names here, we could continue the discussion on email.

Cheers !

Raj, I've found that going all the way through this course (how to build a website and through the rest of your track), reveals a goldmine of information and knowledge, and that once finished, supplementing with other sites helped as well. I would however, encourage sticking this out first so as not to get discouraged and stop altogether as there are times where this course gets very confusing. (But with a little perseverance and the help of the forums, it is quite worth the frustration)

These would be my only reasons to not use other sites, that will not be named, at the same time as you're going through this course, though others might say otherwise. I think treehouse would definitely encourage you in finding ways to put what you're learning into practice!!!

Hi Raj!!

Yes, the IT is the browser that reads your index.html file!! :-)

I hope this answers your question!!

(PS if someone answers your question and it helps, get in the habit of giving those around you an "upvote" or a "Best Answer".

It makes them feel good, and you'll find you need them (upvotes and Best Answers) later on, and also -others may return the favor!!! )

KEEP UP THE GOOD WORK, STAY ENCOURAGED AND KEEP CODING NO MATTER HOW HARD IT GETS!!!! :-) (and take notes)