How to import CSS source

Asked

Viewed 136 times

-1

I need to use the source Imagine, but I have no idea how to import it to my page. I did so, but it did not work:

<style>
font {font-family: "Imagine Font"; src: url("lib/font/imagine_font.ttf") format("truetype");}
</style>
  • 1

    Doubt: Why do this in PHP and not directly in CSS? I believe the question How to use fonts on my Site? solves your problem.

  • Good question... I did directly in CSS now... rs

  • @Andersoncarloswoss, I did exactly what it shows on the link you sent, but it didn’t work.

  • Put that attempt to the question, please.

  • It’s already in the question... it’s the same thing.

  • It is not, no. In the question I quoted it is used @font-face. You just used font.

  • Possible duplicate of How to use fonts on my Site?

  • @Andersoncarloswoss, font is the name of my tag. It’s like H1. I made the change you suggested, but it didn’t work either.

  • http://www.maujor.com/tutorial/[email protected]

Show 4 more comments

1 answer

0

From what I understand you are wanting to assign a font carrying it along with the link try to put it right in the reset of the page ex:

*{ margin:0; padding:0; font-family: "Imagine Font" Arial;}

try so it will not be 100% because whoever is accessing your page does not have the source on your computer the same will be exchanged for another in some case the text is broken, so always add another that has on all the computer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.