...

View Full Version : line-height and browser variance



bryndyment
01-27-2004, 12:14 AM
Any tricks to dealing with browser variance of line-height for blocks (paragraphs) of text? I'm using line-height of 1.7, and getting (slight) differences across browsers. Unavoidable?

liorean
01-27-2004, 12:28 AM
It depends a little. Some antialiasing systems, such as the OS wide one in Mac OS X, allow less-than-whole pixels in all directions. Some browsers (read Opera) account for a font's aspect value. Some need manual setting using font-size-adjust. And don't believe fonts use the same aspect value just because they are named the same. Mac vs. PC Verdana is a prime example. Add on top of that rounding and general rendering differences.

bryndyment
01-27-2004, 12:38 AM
For example, I have a paragraph of text that matches to-the-pixel in IE/Opera, using line-height of 1.7. To match those with NN, I need to set NN's line-height to 1.64.

(All browsers latest versions, Windows.)

rmedek
01-27-2004, 02:53 AM
I run into that problem a bunch because my computer is a Mac... when I look at the design in a PC it (font, font-size, line-height, etc.) takes on a whole other look.

I find it's easier just to make sure the layout isn't dependent on that sort of thing, and I use images for the more decorative text (a no-no, I'm sure, but what the heck... :))



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum