This is NOT a duplicate of Font-Face use absolute path.
In folder1, I have index.html, main.css and digital.tff. I don't understand why the font doesn't work with the full path. I tested wood-table.jpg with and without the full path and it works either way.
This doesn't work:
@font-face {
font-family: "digital";
src: url(http://www.example.com/folder1/digital.ttf);
}
body {
background-image: url(http://www.example.com/folder1/wood-table.jpg);
background-repeat: repeat;
background-size: 100% 100%;
}
But this does:
@font-face {
font-family: "digital";
src: url(digital.ttf);
}
body {
background-image: url(http://www.example.com/folder1/wood-table.jpg);
background-repeat: repeat;
background-size: 100% 100%;
}