I attempted to use @font-face to incorporate some unique fonts into my website. Surprisingly, everything worked perfectly fine when I tested it on localhost. However, as soon as I moved the code to a live server, the font-face stopped working in all browsers. Here is the snippet of code I used:
@font-face{
font-family: lucida;
src: url('../fonts/lucida.ttf');
}
.header {
font-family: lucida;
}
It's puzzling that the code functions flawlessly on localhost but fails to render correctly on the live server.
NOTE: My font files are stored in a folder named "fonts" and CSS files are in a folder named "css".