Welcome to WebmasterWorld Guest from 50.19.0.90

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)

Full Member

10+ Year Member

joined:Dec 16, 2002
posts:239
votes: 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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 6, 2001
posts:917
votes: 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)

Senior Member from US 

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

joined:Mar 31, 2002
posts:7575
votes: 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)

Senior Member

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

joined:Feb 4, 2002
posts:5044
votes: 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.

Nick

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

Full Member

10+ Year Member

joined:Dec 16, 2002
posts:239
votes: 0


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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 12, 2002
posts:885
votes: 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.)

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members