CSS font-face does not work

css, font-face

Solution

add format("opentype"); after URL

Problem

I am trying to add a custom font to my website. I have tried lots of things but didn't succeed. Here is my css code: ``` @font-face { font-family: myFirstFont; src: url('ellis.ttf'); } body { margin: 0; padding: 0; width: 100%; cursor: default; font-size: 11px; line-height: 1; font-family: myFirstFont,arial,san-serif; overflow:auto; background:#ecf6f7; } ``` I know this is not a cross browser case, but I am trying to make work a simple case at first.

Original source