I'm trying to insert a non-standard font into my html
, but it's not working. I downloaded the font and put it in a /font
folder inside the css
folder. Here is the code:
@font-face {
font-family: sans-pro;
src: url("/font/source-sans-pro/SourceSansPro-Regular.ttf");
}
#header1 {
font-family: sans-pro;
color: red;
}
I'm using windows7 and wampserver.