Font issue in CSS !

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Font issue in CSS !

Post by Mds »

Hi
I had a font file (Channels.ttf), I installed it. Its name is CHANL.
Now I use this CSS code in my local HTML file.

Code: Select all

.productText{
    font: bold 36pt CHANL;
    color: #b3c800;
    padding-left: 11px;
}
But the text doesn't show with CHANL font. I test it in FF3 and Opera9.5 and IE6
What's wrong with it ? Image

Thanks for your suggestions
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Font issue in CSS !

Post by pickle »

I've noticed with some compound style declarations ("font", "background"), if you don't have them in the exact correct order, it goes to hell. Try explicitly stating it in a font-family: declaration & see what happens.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: Font issue in CSS !

Post by Mds »

Thanks.
I used it but it made no difference. :(
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Font issue in CSS !

Post by pickle »

Try putting the name in quotes. You're probably not specifying the name correctly.

The bigger question is why you're even trying to use a non-standard font?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: Font issue in CSS !

Post by Mds »

Wow Image
Thank you very much
My problem solved Image
Post Reply