Reply LinkBack Thread Tools Search this Thread
Old 18-06-2007, 10:48   #1 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,396
Default font-size in browsers

I'm an advocate of using 62.5% to get the default font-size down to 10px and then build from there using em's. I have a meeting tomorrow with my client, who has demanded that x-small, medium, xx-large technique to do the font-sizing.

Now I was convinced that my way was the best way to do it and was used by all the big boys. Looking around, i'm now not sure as mr meyer and mr clarke have very different ways in their css files.

Can anyone shed any light on who has recommended this in the past, or am I completely wrong with this and should I just accept the slap on my wrist for this and hang my head in shame?

Cheers guys and gals.
__________________
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison

prem ghinde
  Reply With Quote
Old 18-06-2007, 11:20   #2 (permalink)
freelancr
Web Developer
 
freelancr's Avatar
 
Join Date: Oct 2006
Posts: 1,984
Another vote for 62.5%, if the client is telling you how to do your job when it comes to something as basic as font sizes, I really would advise you don't touch this project with a barge pole. Clients that try to micro manage the project are bad enough, but this guy sounds like he will make your life a living hell.
  Reply With Quote
Old 18-06-2007, 11:31   #3 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,396
cheers freelancr. slightly mis-explained the situation. the client (big as one that they are) hired two firms, us (who i'm contracting for) who already run the infrastructure of the site and are doing the front-end development in a reskinning project. And the other company provided a techincal spec for us to work to and are producing the visuals, and it's this other third party supplier who are 'suggesting' the keyword method is the best.

You wouldn't know of anyone I could quote using the 62.5% method??
__________________
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison

prem ghinde
  Reply With Quote
Old 18-06-2007, 12:21   #4 (permalink)
freelancr
Web Developer
 
freelancr's Avatar
 
Join Date: Oct 2006
Posts: 1,984
Quote:
Originally Posted by funkyprem
You wouldn't know of anyone I could quote using the 62.5% method??

Well you could search for the original article, it explains why to use it and isn't there loads of screenshots of different browsers on there too? Either way it is a tried and tested good method.

Don't know of any specific sites that use it because I don't browse the css unless it does something cool.
  Reply With Quote
Old 18-06-2007, 12:31   #5 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,077
Your method is correct, your client's is not. On one hand you can tell your client that they're hiring you because you know what's best. On the other hand, if they don't care, just give them their shit-code.
  Reply With Quote
Old 18-06-2007, 12:35   #6 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
Join Date: Mar 2004
Location: Liverpool
Posts: 5,174
just use the method they'd prefer ... use it as a chance to learn about the differences/benefits for yerself ...

i've seen it in use - its swings and roundabouts i think ...

i think the 62.5 method may suit designers more - for more control over font sizes, whereas the small/med/large is used more with accessibilty in mind - for government sites etc - but you don't get as much control over every detail ... ?
__________________
fuck signatures
  Reply With Quote
Old 18-06-2007, 12:39   #7 (permalink)
freelancr
Web Developer
 
freelancr's Avatar
 
Join Date: Oct 2006
Posts: 1,984
but the 62.5% method doesn't adversely effect accessibility does it, as em's can be resized in all browsers?
  Reply With Quote
Old 18-06-2007, 13:35   #8 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,396
i thought that was the point... almost all the control of pixel sizing, with the ability to resize the text.
__________________
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison

prem ghinde
  Reply With Quote
Old 18-06-2007, 14:30   #9 (permalink)
pgo
i'm done, son
 
Join Date: Jan 2005
Posts: 12,262
Yep, that's the idea.

In Dan Cederholm's latest book he uses the keywords - x-small and so on - so it's not unheard of. I still use the 62.5% though.

Last edited by pgo : 18-06-2007 at 14:51.
  Reply With Quote
Old 19-06-2007, 04:13   #10 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,396
Thanks guys, i'll see what they flag up in the meeting today.

dum dum dumdum, dum du dum dum dum dum dummmmmmmmm
__________________
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison

prem ghinde
  Reply With Quote
Old 19-06-2007, 05:00   #11 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,120
the 62.5% has some issues with IE font-sizes being slightly off (at least in IE6 it did, unsure of IE7), but the difference is so small it's barely noticeable.

what you're doing definitely isn't wrong - it's a preference
__________________
Random goodness at The Blog

  Reply With Quote
Old 19-06-2007, 12:07   #12 (permalink)
pgo
i'm done, son
 
Join Date: Jan 2005
Posts: 12,262
Yeah. I say just build it the way your client asks.

Or could you do the 62.5% and then use the keywords from there?
  Reply With Quote
Old 19-06-2007, 12:10   #13 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,396
no, 62.5% them ems from then on.

they were ok with my justification in the end. their main reason for bringing the whole issue was that when someone goes one text size down, very small text became unreadable whereas if it had been declared as x-small for instance it would always stay readable.

they were clutching at straws!
__________________
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison

prem ghinde
  Reply With Quote
Old 24-06-2007, 08:09   #14 (permalink)
IdealWebsites
Registered User
 
IdealWebsites's Avatar
 
Join Date: Oct 2006
Location: London, UK
Posts: 29
I was taking a look at Yahoo's YUI developer stuff and they advocate using percentages for all fonts.

Yahoo! UI Library: Fonts CSS

Personally I've always used the 62.5% method but I'm glad this topic came up as I was wondering what other people thought about the Yahoo recommendation.
  Reply With Quote
Old 24-06-2007, 12:56   #15 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,396
had a look at that yahoo stuff when hunting around for backup, but got a little confused by what they've put together.

I thought that the default font-size was 16px on all monitors (obv default settings). so how can 100% of 16px equate to 13px??
__________________
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison

prem ghinde
  Reply With Quote
Old 24-06-2007, 13:12   #16 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,120
Quote:
Originally Posted by funkyprem
had a look at that yahoo stuff when hunting around for backup, but got a little confused by what they've put together.

I thought that the default font-size was 16px on all monitors (obv default settings). so how can 100% of 16px equate to 13px??

the first thing Y!UI's fonts css does is set the font-size of the body element to 13px, and everything is relatively sized via percentages from then on, so 100% = 13px (unless you're dealing with child elements).

it's nice and everything, but i still find 62.5% technique more readable
__________________
Random goodness at The Blog

  Reply With Quote
Old 24-06-2007, 14:25   #17 (permalink)
pgo
i'm done, son
 
Join Date: Jan 2005
Posts: 12,262
Well, since 62.5% resets to roughly 10px, it makes math a lot easier.

1.5em * 10px is easier than 1.5em * 13px
  Reply With Quote
Old 25-06-2007, 04:42   #18 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,396
my bad. hadn't seen that one line of code!
__________________
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison

prem ghinde
  Reply With Quote
Old 25-06-2007, 04:46   #19 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,396
after seeing this..

Code:
body { font:13px arial,helvetica,clean,sans-serif; *font-size:small; *font:x-small; }
1) what is the point of the font overriding the font-size?
2) what is 'clean' in the font list?

I'm still gonna use what Mr Meyer has set out with a few tweaks of my own.
__________________
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison

prem ghinde
  Reply With Quote
Old 25-06-2007, 08:31   #20 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,077
Quote:
Originally Posted by funkyprem
after seeing this..

Code:
body { font:13px arial,helvetica,clean,sans-serif; *font-size:small; *font:x-small; }
1) what is the point of the font overriding the font-size?
2) what is 'clean' in the font list?

I'm still gonna use what Mr Meyer has set out with a few tweaks of my own.
That is just poor css writing really, nothing to aspire to.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8