W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2005

Re: Proper font-size calculation with ems (was RE: Image Galleries)

From: B.K. DeLong <bkdelong@pobox.com>
Date: Wed, 05 Jan 2005 10:27:08 -0500
Message-Id: <5.2.1.1.2.20050105102531.04cf2d40@mail.brain-stream.com>
To: "Patrick H. Lauke" <redux@splintered.co.uk>,w3c-wai-ig@w3.org
Cc: "John Foliot - WATS.ca" <foliot@wats.ca>

At 02:45 PM 1/5/2005 +0000, Patrick H. Lauke wrote:
>It's not just a case of changing any px references to ems. You need to 
>have a good look at the CSS and your typical page structure and let 
>inheritance work *for* you, rather than against you. E.g.: not studied 
>your CSS in any detail, but there are a lot of font-size:11px rules there. 
>If you wanted to change to ems, you wouldn't replace all those with 
>font-size:0.75em (as yes, that would get you into inheritance problems), 
>but rather set the font-size for the entire page (on the body element) to 
>0.75em and remove any further size declarations for all the elements, 
>classes, etc that are to be displayed at this default size. To sum it up 
>in a few words: you want to set the font size at the highest possible 
>level within the document tree.
>
>Hope that makes some kind of sense...

Sort of. The nice thing is our base font size IS set to 12px. So I guess I 
can leave that as default em-wise and go from there. The problem, then, is 
all the calculations of permutations of nested properties. Otherwise, all 
our legacy material will look very inconsistent.


--
B.K. DeLong
Web Production Specialist

MIT OpenCourseWare (OCW)
Massachusetts Institute of Technology
Building 9, Room 215
105 Massachusetts Ave.
Cambridge, MA 02139-4307

email: bkdelong@mit.edu
http://bkdelong.mit.edu
Received on Wednesday, 5 January 2005 15:27:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:19 GMT