Wednesday, October 30, 2013

How To Use Custom Fonts On Your Website With CSS

(i)You can download the font ( Example:PT-Sans.ttf ) , and Create the Font Folder and place the Font in Folder
(ii)Go to the CSS Style Sheet and Write blow content
@font-face {
    font-family: 'PT Sans Caption';
    src:
         url('fonts/PTC55F.ttf') format('truetype'),
    font-weight: normal;
    font-style: normal;
}
h1 {
    font-family: 'PTC55F', arial, helvetica, serif; font-weight: normal; color: #c73331;
    }

This way you can use as many custom fonts as you feel like on your website.

w3தமிழ் எழுதி