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 trialLeumas Erasa
974 PointsWhy are there 2 "src: " declarations in the @font-face code?
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');
Reading online reference material on this IE fix it says the browser will usually skip to the last src declaration, so why are there 2? Surely the first src can be omitted?
Brad Lacke
7,438 PointsBrad Lacke
7,438 PointsSomeone might be able to answer this more in depth but that's just how the font declaration has to be. The first src is for IE9 and then the other browsers are supported in the second. You can possibly get away with the last one but if you're going to bother it's obviously best to cover all your bases.