wsg  

[WSG] line-height compatibility troubles

Bas V
Thu, 17 Jul 2008 02:34:56 -0700

Am I correct to notice that there is rather a bit of difference between 
browsers in the spacing between the lines of text?

My problem:
I have a box 359 x 359 pixels in which I need to put a set amount of text.
The text wraps exactly the same in all browsers, only the line height is 
different between some of them.

The text fits in Internet Explorer 6 and 7 and Opera 9.5 on PC, Firefox 2 and 
Safari on Mac, but in Firefox 2 and Internet Explorer 8 on PC it doesn't fit 
and is subsequently cut off.

I tried applying line-height: 12px; to the div that contains the text, that 
effected the spacing between the lines but that still didn't make it exactly 
the same in all browsers, there was still variation between them.

The page is XHTML 1.0 Strict (and CSS 2.1) valid, so how is it possible that 
some browsers show more line space, shouldn't it be all the same?

Your advice please.





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