SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: BaseFont

  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2001
    Location
    earth
    Posts
    501
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question BaseFont

    Hi!

    I don't understand for what purpose is the basefont. I've read the descritption on sevaral sites, but I still remains confused.

    Dreamweaver has it. +1 +7 -1 -7 But for what?!?!?

    [img]images/smilies/confused.gif[/img]
    Last edited by magi; Nov 3, 2003 at 06:20.

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Basically it sets the default font properties for the page it's placed on...BUT it shouldn't be used anymore, as it's deprecated from HTML 4.0+, so instead CSS should be used:

    Code:
    body {
      font-family: Arial;
      font-size: 0.8em;
      color: #000;
    }
    This is the standards-compliant way of doing it

    -Sam
    Sam Hastings

  3. #3
    SitePoint Evangelist
    Join Date
    Jan 2001
    Location
    earth
    Posts
    501
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But is the same as FONT, isn't it?

    Anyway... I never used it. Just wondering because Dreamweaver has it.

    And you used 'em' instead of 'pixels'. Is better?

    [img]images/smilies/smile.gif[/img]

  4. #4
    SitePoint Evangelist
    Join Date
    Nov 2001
    Location
    UK
    Posts
    553
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Using em allows the user to resize the font using their browser whereas using pixels doesn't. Might not sound like much of an advantage, but it's really handy for people with vision impairments who perhaps can't read small text.
    Regards, Ant.


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
  •