Setting defealt font (outside of <p>)

Discussion in 'CSS' started by simonspurr, Oct 28, 2008.

  1. #1
    I'm currently about 98% complete my first WordPress theme, just needing to add a few things here and there, and set the default text of the page to a certain font

    In my sidebar, the widgets and other items don't use the <p> function, and so they display in the default font of that browser - is there anyway I can change this so that I can tell it what font to use

    e.g. something like .{font-family: arial} or something like that?
     
    simonspurr, Oct 28, 2008 IP
  2. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In your css file add the following:

    
    body
    { font-family:arial; }
    
    Code (markup):
    This will make all of the code into arial. If you specify any other types, like p or h1 or divs/classes, with a different font they will change.
     
    LeetPCUser, Oct 30, 2008 IP
  3. simonspurr

    simonspurr Peon

    Messages:
    604
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ahh - it's so simple - guess I was looking for something a little more complex :(

    To get around it I just specified the font in every single div I needed it in, but will change it

    Cheers
     
    simonspurr, Oct 31, 2008 IP