2

I have a big problem with css, how can I pun this font MyriadPro-It.otf in CSS?

Thanks !

cosy
  • 482
  • 1
  • 9
  • 20
  • 3
    Dupe: http://stackoverflow.com/questions/16233/fonts-on-the-web http://stackoverflow.com/questions/1718488/how-to-use-our-custom-font-on-our-website – Pekka Apr 28 '10 at 08:01

3 Answers3

10

you can add this css in your style sheet.

@font-face {
        font-family: "MyriadPro";
        font-style: normal;
        src: url(../fonts/MyriadPro-It.eot); /*if IE */
        src: local("Grandesign Regular"), url("../fonts/MyriadPro-It.ttf") format("truetype"); /* non-IE */
}
Kali Charan Rajput
  • 10,526
  • 9
  • 31
  • 45
2

Take a look at this resource: Mozilla CSS font face.

It's a guide that will help you get started. Also, check out Google, it's your friend. :)

Kyle
  • 60,843
  • 27
  • 138
  • 150
1

For your local machine, just install the font, and you should be able to access it with css (you might need quotes?).

If you want it to show up everywhere (which you probably meant with your question), then you better check out the dupes.

thenoviceoof
  • 590
  • 3
  • 9