On 3 Aug 2007, at 16:08:55, Rick Lecoat wrote:

At 12:41 (London time), on 3/8/07, [EMAIL PROTECTED] said:

Note also that it doesn't actually work

.../ snip /

IE ignores fractional components of percentages - or, as another way of looking at it, only uses the first two decimal places of em based sizes - which means that any subsequent use of ems for sizing parts of the page
won't work properly.

Very interesting Nick, I wasn't aware of the decimal place limitation in
IE. Another negative point racked up against the Clagnut ems method,
which is a shame because I liked the simple and elegant idea behind it.
Looks like I'm still on the hunt for the definitive font-sizing
technique then.

When dealing with this the other year, I came up with this solution requiring an additional div, which happened to be there anyway:

body {
font-size: 125%; /* bump it up to 20px, assuming browser starts at 16px */
}

div#wrapper {
   font-size: 50%; /* and back down to 10px */
}


and took it from there :-)

(Still falls foul of a minimum font-size set in the browser preferences, though.)

Cheers,

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to