Custom fonts in css

Discussion in 'CSS' started by netpox, Mar 5, 2007.

  1. #1
    How do i use custom fonts in css...i want to use a font called Myriad. But when i do

    body {font-family:Myriad;}

    it still displays as default. If i change it to a font that is on most people's computers it works but that one wont..is there a way to have custom fonts that would work on everyone else's computer.
     
    netpox, Mar 5, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Why the double post? Your answer is in the html sub-forum.

    gary
     
    kk5st, Mar 5, 2007 IP
  3. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #3
    Sticking to web safe fonts is best, or use graphics to display artistic headers if that's what you're up to.
    Inserting a custom font in the body is not too wise.
     
    Clive, Mar 7, 2007 IP
  4. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #4
    bacanze, Mar 7, 2007 IP