Hi,
I want to display some text, using a floating DIV to place it inside some boxes painted on an image background.
The problem is on a Linux system, where the default value of line-height seems to be 1.52 instead of 1.2, as I read it should be (both Mozile & FireFox).
Because of that, the text gets out of the intended graphic boxes (at the bottom).
I have in my .css
BODY{ font-family:Arial; }
DIV.floater{ font-size:13px; position:absolute; color:#000000; z-index:2; }
And I didn't know of the line-height property until now.
If I set line-height:1.2 in the floater DIV, everything looks OK, like on my Windows system.
My questions are:
Is this a common thing, that the default value of "line-height" is different, or it's a different cause? (font sizes looks the same, though I can't compare precise screenshots).
Is it a good practice to set it to the default 1.2 value, to make sure it stays that way, no matter what?
Is this approach save, for my purpose of having the text of the same size (fit in the same size rectangle) on any browser/system ?
Is Arial font OK, or should I use (or add) Helvetica?
Thank you!
