View Full Version : line-height and browser variance
01-27-2004, 01: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?
01-27-2004, 01: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.
01-27-2004, 01: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.)
01-27-2004, 03: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... :))
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.