(08-06-2011, 07:55 PM)Paradox Wrote: Well, I'm attempting to use a custom font on a website I'm coding, but its not working. I've Googled it, and got this code, which apparently isn't working.
Code:@font-face
{
font-family: Blocky;
src: url('Blocky.eot');
src: local(Blocky), url('Blocky.ttf') format('truetype');
}
The font is called "Blocky" and everything is located in the same directory at the moment.
I don't know a lot about web development or CSS, but I can give you a few tips and some feedback.
First of all, I've never seen CSS that looks like that. Your code is all over the place. Please see www.tizag.com for advice on CSS syntax, because that is definitely not the correct syntax for CSS... at least not from the past few years.
Secondly, I'm pretty sure that the "@" symbol that you put in front of your CSS class name is invalid. I recommend that you use the "#" symbol.
Finally, I don't know why you have two "src:"'s in your CSS class. Is that proper syntax?
Sorry I can't tell you more than I know.
EDIT: I think that Glome can help you more than I can with CSS. The page he supplied showed that the "@" symbol is apparently the proper choice for what you are doing. My bad.
-CoderRyne
Ryne Thiel
Ryne Thiel