Designed for eBay Sellers, Sellercore offers custom eBay auction template editing, free eBay listing templates, online eBay picture & image hosting, eBay seller help, and more!

How Do I Link To And Use A Custom Font Style With CSS?

Answered
0
0

I have a custom font file (.ttf, .otf, .woff) I would like to use online. How do I use CSS to link to my custom file and incorporate the style within my page?

  • You must to post comments
Best Answer
0
1

Assuming your font file is stored online so your viewers browser can link to it, you will want to use CSS @font-face in style brackets. The custom font-family name can be changed to whatever you like.

This is slightly more advanced coding but can be easily acomplished by copying the code below…

<style>
@font-face {
font-family: utsaah;
src: url(http://www.sellercore.com/classes/fonts/utsaah.ttf);
}
</style>
<span style="font-family: utsaah;">Example of linking a custom font!</span>

 

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.