943,169 Members | Top Members by Rank

Ad:
Sep 2nd, 2010
0

Font problem Html

Expand Post »
First of all hello to everyone, this is my first thread!!

Second, i face a problem with a website i am trying to create! I wanna use a font i downloaded by myself but noone gonna have it! So what should i inlude in my Css or Html code in order to download the font in their pcs and see my website with this font and not the deufault??

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
XxGrplay3R is offline Offline
2 posts
since Jul 2010
Sep 2nd, 2010
0
Re: Font problem Html
First of all, you need to have the font in a directory on your server. Then all you have to do is add a style to your main stylesheet.

HTML and CSS Syntax (Toggle Plain Text)
  1. @font-face {font-family: FontName;src: url('location of font');}

Replacing FontName, obviously, with the name of the font, and the text between the apostrophes with the directory location of the font file on your server.

Then just change the font family of the text on the page to whatever the name of the font is in the above code. For example...

HTML and CSS Syntax (Toggle Plain Text)
  1. customFont p
  2. {
  3. font-family: FontName;
  4. }

Let me know if you need more help.
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
packetpirate is offline Offline
60 posts
since Jun 2010
Sep 3rd, 2010
0
Re: Font problem Html
Thanks!! It worked
Reputation Points: 10
Solved Threads: 0
Newbie Poster
XxGrplay3R is offline Offline
2 posts
since Jul 2010
Sep 10th, 2010
0
Re: Font problem Html
Wait.. So, is this true, that you can have your text in ANY font you want?? So long that the Font Family is on your server?

It will work on anybodies computer???? This would be so helpful if it were true!!

Please let me know.
Thanks!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
canadian_sars is offline Offline
5 posts
since Sep 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Firefox HTML behind Flash Nav Bar?
Next Thread in HTML and CSS Forum Timeline: Centering a horizontal menu in header





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC