Css, external fonts

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

Thanks!

+2


a source to share


3 answers


you can add this css to your stylesheet.



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

      

+10


a source


Take a look at this resource: Mozilla CSS Font Font .



This is a guide to help you get started. Also, check Google , this is your friend. :)

+2


a source


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

If you want it to show up all over the place (which is what you probably meant with your question), then you better check for cheats.

+1


a source







All Articles