cosy
cosy

Reputation: 572

Using external fonts in CSS

How can I put this font MyriadPro-It.otf in CSS?

Upvotes: 2

Views: 19574

Answers (2)

Kali Charan Rajput
Kali Charan Rajput

Reputation: 12596

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 */
}

Upvotes: 10

thenoviceoof
thenoviceoof

Reputation: 616

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.

Upvotes: 1

Related Questions