CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
CSS Combat
Font import to my html page
akbarbadsha25
Permalink to comment
#
May 2009
i want to import font in to my html page. i have look more site using font import using css
@font
-import{ }. nut there any example cannot work
i am here declared my css code in my css file:
@font
-face {
font-family: "Sketch Block";
src: url("../Sketch Block.ttf") format("truetype");
}
the font is in my root folder.
you have any smple file can u show or post in twitter . this is very urgent rewuirement.
[Deleted User]
Permalink to comment
#
May 2009
@font
-face isn't widely supported currently, what browser are you using to test with ?
nickstr
Permalink to comment
#
May 2009
@font
-face is supported by the latest safari and opera I think...
for firefox and the rest of crappy IE versions try using sifr3 or 2.07
akbarbadsha25
Permalink to comment
#
May 2009
"JayX" said:
@font
-face isn't widely supported currently, what browser are you using to test with ?
i am using firefox 3.0 version and Ie7
[Deleted User]
Permalink to comment
#
May 2009
That'll be why then, FireFox 3 doesn't pass CSS3 validation yet (by quite a way) and IE7 is lightyears behind. Only Opera and Safari (and Chrome, I imagine due to webkit) hit all the validators as per Nick's post.
Add a Comment
i am here declared my css code in my css file:
@font-face {
font-family: "Sketch Block";
src: url("../Sketch Block.ttf") format("truetype");
}
the font is in my root folder.
you have any smple file can u show or post in twitter . this is very urgent rewuirement.
for firefox and the rest of crappy IE versions try using sifr3 or 2.07
i am using firefox 3.0 version and Ie7