SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: "-" font sizes

  1. #1
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    "-" font sizes

    Why are there "-" font sizes? -2 is the same as 1, and -2 through -7 are all the same. I don't get it.
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  2. #2
    SitePoint Zealot strangealienmagic's Avatar
    Join Date
    May 2001
    Location
    Metro Detroit area, Michigan
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1, 2, etc. are absolute font sizes.

    "-" and "+" designate relative sizes. Relative to the size set in your browser preferences.

    I believe 3 is the default browser font size, which is why the absolute size of 1 and the relative size of -2 are the same in your browser. Since 1 is the smallest font possible (unless you use CSS and designate font size by points, pixels, etc.), that makes -3 and smaller designations ineffective.

    I like the text to be the size I designate, so I always use absolute sizing. Of course that can be overriden in the browser preferences, but most people just accept the intended size.
    Last edited by strangealienmagic; Jun 10, 2001 at 18:37.

  3. #3
    Add new title here.. john's Avatar
    Join Date
    Jul 1999
    Location
    Amsterdam, The Netherlands
    Posts
    259
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    I would advise to stop using the <font></font> tag in all your code and use stylesheets instead.

    For setting your font size css is more precise as it uses pixels to determine the size.


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
  •