Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make specific css code for IE10

I bind some type for my site:

@font-face {
font-family:WILLS;
src:url(WILLS.TTF);
}

In most browsers this types recognize perfectly but IE don't see this type because of ttf extensions. But the problem is that IE10+ aren't support this condition.

<!--[if IE]>...<![endif]-->

Is there any way to make specific css code for IE10 to change type to usuall, for example Tahoma or times and ofcourse change font-size?

like image 515
Sevar Avatar asked Oct 24 '13 10:10

Sevar


2 Answers

You will need to specify a EOT file for IE9+ and a TTF file for <= IE8

@font-face {
font-family:WILLS,
src:url(WILLS.TTF),
url(WILLS.EOT); /* IE9+ */
}

If you convert the TTF file to an EOT file and upload both files. IE9 and above will use the EOT file

like image 175
Liam Sorsby Avatar answered Sep 17 '22 08:09

Liam Sorsby


I would suggest you look into a webfont generator. It will give you the font types you need to also support IE10 and will make css code which ensures best support cross-platform.

Font Squirrel is the most used/popular out there but there are more

http://www.fontsquirrel.com/tools/webfont-generator

like image 35
sg3s Avatar answered Sep 19 '22 08:09

sg3s