PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun May 20, 2018 2:46 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Font issue in CSS !
PostPosted: Wed Oct 08, 2008 10:29 pm 
Offline
Forum Contributor
User avatar

Joined: Tue Apr 22, 2008 8:56 pm
Posts: 110
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.
Syntax: [ Download ] [ Hide ]
.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


Top
 Profile  
 
 Post subject: Re: Font issue in CSS !
PostPosted: Thu Oct 09, 2008 10:57 am 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6444
Location: 53.01N x 112.48W
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.


Top
 Profile  
 
 Post subject: Re: Font issue in CSS !
PostPosted: Thu Oct 09, 2008 1:46 pm 
Offline
Forum Contributor
User avatar

Joined: Tue Apr 22, 2008 8:56 pm
Posts: 110
Thanks.
I used it but it made no difference. :(


Top
 Profile  
 
 Post subject: Re: Font issue in CSS !
PostPosted: Thu Oct 09, 2008 2:03 pm 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6444
Location: 53.01N x 112.48W
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.


Top
 Profile  
 
 Post subject: Re: Font issue in CSS !
PostPosted: Fri Oct 10, 2008 2:09 am 
Offline
Forum Contributor
User avatar

Joined: Tue Apr 22, 2008 8:56 pm
Posts: 110
Wow Image
Thank you very much
My problem solved Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group