Jump to content
Sign in to follow this  
V0uk

@font-face isn't working

Recommended Posts

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

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

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

What should I do?

Share this post


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.

Share this post


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.

Guest
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.

Loading...
Sign in to follow this  

×
×
  • Create New...