SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Font tags

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2000
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What the correct way to make an entire document the same font. I use the <font face="xxx"></font> at the begining and end of my page, but every validator I run it throw finds 30 some errors.

  2. #2
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CSS should do the trick...put this in your < head > tag:

    Code:
    <style type="text/css">
    <!--
    body { font-family: "arial", "serif", "sans-serif" }
    -->
    </style>
    Obviously you can change the fonts listed there, but overall this should make sure that all text inside the < body > tags will be changed to the specificed font.


  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:

    Code:
    <style type="text/css">
    <!--
    body
    {
    	font-family: Ms Sans Serif;
    }
    -->
    </style>
    Add that between your <head> and </head> tags. You can change the font where it said "font-family: Ms Sans Serif;, or you can add others seperating each by a comma. If you continue to have problems, please post again.
    Devin McLean
    http://dreamer.spacecoast.com
    -------------------------


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •