Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Using @font-face Not working

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #202090
    codeaholic
    Participant

    I’m following the article on this website: https://css-tricks.com/snippets/css/using-font-face/

    I’m trying to use the @import of a Google font and basically I’ve choosen a weird font to make sure its working. Conclusion: I’m not doing something right. I started with a separate css file and the basic sans serif font and have moved to direct in style and a weird font for troubleshooting purposes and no matter what I do it’s not working.

    Take a look at

    http://codepen.io/codeaholic/pen/vOGObG

    Note the style
    <style>
    @import url(//fonts.googleapis.com/css?family=Lobster+Two);
    </style>

    and the Body tag

    #202100
    Paulie_D
    Member

    Dude…did you link the wrong Codepen or something?

    There’s no style tag or import that I can see.

    http://codepen.io/Paulie-D/pen/bdpwOd

    #202123
    codeaholic
    Participant

    Yeh, I forgot to save it and I guessed the auto save would have grabbed it. I see your codepen working but the problem seems to be using this “inconjunction” with the Jquery Mobile and loading it in for the body tag.

    Trying again:

    http://codepen.io/codeaholic/pen/vOGObG

    #202125
    Paulie_D
    Member

    You’d have to out that declaration in your head


    <style>
    @import url(//fonts.googleapis.com/css?family=Lobster+Two);
    body {
    font-family: ‘Lobster Two’, sans-serif;
    font-size: 32px;
    }
    </style>
    “`
    Not the best option..I’ll grant.

    http://codepen.io/Paulie-D/pen/doMWzB

    #202126
    codeaholic
    Participant

    Ok thanks. It looks like if I body * {} it works.

    http://codepen.io/codeaholic/pen/vOGObG

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.