homepage Welcome to WebmasterWorld Guest from 54.163.139.36
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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

10+ Year Member



 
Msg#: 728 posted 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

 

Eric_Jarvis

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 728 posted 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

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 728 posted 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.

Nick_W

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



 
Msg#: 728 posted 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.

Nick

Web Footed Newbie

10+ Year Member



 
Msg#: 728 posted 7:35 pm on Mar 11, 2003 (gmt 0)

Thanks folks. :)

dingman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 728 posted 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