Reputation: 572
How can I put this font MyriadPro-It.otf in CSS?
Upvotes: 2
Views: 19574
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
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