Jump to content

@font-face isn't working

Recommended Posts

I've got a file named "index.html":

<!DOCTYPE html>
        <meta charset="UTF-8">
                font-family: Azonix;
                src: url(azonix-webfont.woff);
        <p style="font-family: Azonix;">Hello!</p>

But it's displayed with default font, not Azonix.

What should I do?

Link to post
Share on other sites

Does the file "azonix-webfont.woff" exist in the same directory as the HTML file?

You can check the network tab in your browser's developer tools to see if the font failed to load. Most browsers will display the developer tools when you press the F12 key on your keyboard.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...