#1
  1. The Basketball Star
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2001
    Location
    H-Town
    Posts
    550
    Rep Power
    14

    CSS font-size for entire page


    Is it possible to change the font size of the entire body using CSS? Something similar to the <basefont> tag? I tried:
    Code:
    body { font-size: 10pt }
    and it doesn't seem to work. How would I go about doing this?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Sweden
    Posts
    45
    Rep Power
    14
    That should work. Are you sure your text isn't inside a table? If it is you could add "td" after body:
    Code:
    body, td {
    	font-size: 10pt;
    }
    // Pikachu420
  4. #3
  5. The Basketball Star
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2001
    Location
    H-Town
    Posts
    550
    Rep Power
    14
    Dang you're right. I had set up the whole page in one big <td> cell. I feel so stupid. But I knew it was in a <td> cell because I ended up just puting the font-size property on the <td> anyway. Thanks for the extremely quick response. Even though I already have it working, it's good to know that it does work with body. Didn't make much sense that it didn't...

IMN logo majestic logo threadwatch logo seochat tools logo