Welcome to WebmasterWorld Guest from 54.157.222.62

Forum Moderators: not2easy

Message Too Old, No Replies

CSS Font Sizing - What do you use?

Percent - % or Pixels - px or Default size - em

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

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

Nick

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

10+ Year Member



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

WebmasterWorld Senior Member 10+ Year Member



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.)