css - Add a font to a website -


i trying add font : http://www.fonts2u.com/vps-dong-da-hoa.font

to website. here css :

@font-face { font-family: "vpsdodah"; src: url(http://localhost/blablabla/wp-content/plugins/buddypress/bp-themes/frisco-for-buddypress/vpsdodah.ttf) format("truetype");}  #header h1 { font-family: "vpsdodah";} 

the url font correct it's not working, can ?

thank much.

not browser support .ttf. use font generator font types ( use font2web ) , add fonts via @font-face:

@font-face {     font-family: 'fontname';     src: url('../fonts/fontname.eot');     src: url('../fonts/fontname.eot?iefix') format('eot'),          url('../fonts/fontname.woff') format('woff'),          url('../fonts/fontname.ttf') format('truetype'),          url('../fonts/fontname.svg#fontname') format('svg');     font-weight: normal;     font-style: normal;  } 

read here browser font support.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -