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

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 UTC