homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

CSS Font Sizing - What do you use?
Percent - % or Pixels - px or Default size - em
Web Footed Newbie

 7:09 pm on Mar 11, 2003 (gmt 0)

In my learning curve of CSS thanks to Nick's 3 part series, I'm interested in what MOST people are using to control font sizing.
Which one are you using? Thanks again. WFN



 7:15 pm on Mar 11, 2003 (gmt 0)

I leave the main body text at the user's default...and menus, small print and headers with %...I have used px now and again to set text precisely to images, though not IIRC in the current incarnation of any site

I use em to set the various design elements to respond flexibly to the text size, so that menu blocks and so on alter to fit

I haven't so far done a print stylesheet since the site prints off perfectly in most circumstances as it is...so I don't use pt at all


 7:15 pm on Mar 11, 2003 (gmt 0)

I'm a bit of an odd duck because I use pixels. I believe most folks use something a bit more flexible.


 7:24 pm on Mar 11, 2003 (gmt 0)

I think many CSS guys and girls use Erics approach (or something very similar).

Personally I don't use %'s but em's. I use px rarely on my own stuff and always leave the body text as it is or, at the most .9em.


Web Footed Newbie

 7:35 pm on Mar 11, 2003 (gmt 0)

Thanks folks. :)


 8:58 pm on Mar 11, 2003 (gmt 0)

For my part, I use ems for most everything, and make body text 1em - the browser default. The only exception is that when I do a print style sheet, I us inches for spacing and pt for font sizes, like I would in a word processor.

(I don't worry so much about accomodating different printers as I do about different screens. The print style sheets are usually for documents with a very narrow pre-determined audience, where I can safely assume US letter size paper.)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved