W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2003

RE: CSS line-height frustrates font size overrides

From: SHARPE, Ian <Ian.SHARPE@cambridge.sema.slb.com>
Date: Mon, 07 Apr 2003 10:49:48 +0100
To: "'Mike Rundle'" <phark@phark.net>, David Woolley <david@djwhome.demon.co.uk>
Cc: w3c-wai-ig@w3.org
Message-id: <FA94B04D5981D211B86800A0C9EA2841011425F1@cames1.sema.co.uk>
I override the any line-height used by the author using my own CSS under IE:
* {
    line-height: 110% !important;
Should do the trick.

-----Original Message-----
From: Mike Rundle [mailto:phark@phark.net]
Sent: 07 April 2003 00:36
To: David Woolley
Cc: w3c-wai-ig@w3.org
Subject: Re: CSS line-height frustrates font size overrides

I agree. 

I think a good compromise could be that if designers need to use absolute
sizes for font-size, they should at least use em lengths for their
line-height, so if the browser were to change the absolutely set font-sizes,
the line-heights would scale accordingly. 

I myself am trying to avoid setting absolute sizes for my text, but bad
habits die hard ;) 

On Sunday, April 6, 2003, at 05:57 PM, David Woolley wrote: 

A problem I'm beginning to notice is that people are using pixel 

values for line-height, based on their under sized fonts. That 

means that if one disables font sizes in IE, to get round the 

undersized fonts (something I've had permanently set for a few months 

now), the vertical spacing becomes so low as to make the text 

difficult to read, or even becomes negative. You are then forced 

to choose between font size and line height problems. 

I'm not sure what the user agent rules say, but I think user agents 

should consider line-height to be in the same category as font-size, 

when disabling the latter. Authors shouldn't, of course, use such 

absolute sizes. 

This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing, 
or copying of this email is strictly prohibited.

If you have received this email in error please notify the
SchlumbergerSema Helpdesk by telephone on +44 (0) 121 627 5600.
Received on Monday, 7 April 2003 05:54:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:15 UTC