Tuesday, October 1, 2013

How to include external font file using CSS

Have you ever gone through a requirement where you need to add a custom font file in your website and use it instead of default font type? If Yes, then follow along to know how to do that.

First create a file say style.css in your project structure and add below code to it:
          Then in your HTML file implement the new font as below(import the css file using link tag):
That's it. You can now see the New Font implemented. 

No comments:

Post a Comment