Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Quick CSS question


  • Please log in to reply

#1
Supercalifragilistic

Supercalifragilistic

    Member

  • Member
  • PipPipPip
  • 404 posts
Why do some people use a percentage as a font size?
  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Using percentages for fonts and other dimension sizes helps to make your page a little more flexible. Whether to use percentages alone for fonts depends on whether you need to have a print friendly page, too. Pts or ems are better for that. Pixels really don't allow that close of control over fonts.

Font sizes depends on browser, O/S and font used.

Ron
  • 0

#3
david3rd

david3rd

    Member

  • Member
  • PipPip
  • 15 posts
Also, studies have shown that using 76% as the base font size results in the actual font produced being as close to exactly the same size on most browsers.
  • 0

#4
Greenstone

Greenstone

    New Member

  • Member
  • Pip
  • 2 posts
As I think Major Payne was saying, people use font sizes to maintain perspective. If you want your header text to be larger than your subtitle, you'd use percentages. That way your site will maintain consistency, even when users have different text sizes with their browsers.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP