Previous Message
Next Message

Re: [css-d] Re: em units - theory vs reality?

Sent by Owen Briggs on 27 June 2002 03:03


6/26/02 6:00:49 AM, Mark Gallagher 
[EMAIL-REMOVED]> wrote:

>
>Owen whatsisname of 
http://www.thenoodleincident.com/> has set something 
similar up, but I don't remember the URL.  He says 
something along the lines of "points are meaningless, pixels 
unresizeable in IE, ems unreliable in Navigator 4 and IE3, 
and %ages have no problems and that makes me 
suspicious", IIRC.
>

heh. close, but cigars are bad for you anyway.

pts are for print, not meaningless. px are unresizeable in 
IEwin. ems ... sub 1.0 ems come out microscopic in 
'smaller' and 'smallest' in IEwin, and a lot of folks browse at 
'smaller'. ems IIRC, are also no good in nn4 and the ilk, but 
you're probably coding a separate css for them so i didn't 
go there. keywords come out larger in opera win. % seems 
reliable across the board.

at the moment i'm using a regular em css, with main text at 
1.0em, and then setting body at 80%. what that does is let 
me write a nice fluid css and then i can muck with the base 
font method to tweak things. _and_ if i find my base font 
method has trouble down the road, i can just delete that 
line and have the site go back to safe default till i have time 
to experiment more.

seems to be working okay. the results do not come out the 
same as having P set to 80%, probably because browsers 
calculate size differently. what i mean is P set at 80% 
comes out pretty much the same across browsers, as my 
screenshot collection showed. but when using P as 1.0em 
and then BODY as 80%, you get some variance.

actually, now that i'm dredging memory, i think the variance 
didn't really get noticeable untill i went down to 76%. but it's 
a small variance. n6 comes out noticeably larger than o6, 
but it's acceptably similar to my view.

use moz and opera to view my blog [75% at the moment] if 
you're curious. 
<http://www.thenoodleincident.com/inflight_correction/log
.html>

note: if you are happy using default size for your main text 
[1.0em, though no code is required] then not much of the 
above is any concern to you. things only get sticky when 
you try to find a method for reliable smaller text.

i _did_ find one of our lovely browsers doesn't zoom em line 
heights, so at high zoom you end up with overlapping text. i 
added that to a pile of zoom and text issues i want to dig 
into and haven't got back to yet.

_______________________________________

http://www.thenoodleincident.com
Previous Message
Next Message

Message thread:

Possibly related: