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

Re: Relative Font Size

From: Charles McCathieNevile <charles@sidar.org>
Date: Tue, 17 Jun 2003 21:39:07 +0200
Cc: w3c-wai-ig@w3.org
To: angela.hilton@umist.ac.uk
Message-Id: <5C7C293E-A0FB-11D7-AE63-000A958826AA@sidar.org>

Yep, because it is an inheritance problem, not one related to units.

The key is to remember what things are going to inherit from what - the 
most typical is lists, but there are other possibilities.

If you set a rule like

li { font-size: 1.2em }

and you have an li inside another li the rule will be applied twice. 
Fortunately, you can set a rule specifically for that case

li li { font-size: 1em }

so that the inside list is that same as it would have been before (but 
already inherits the first magnification).



On Tuesday, Jun 17, 2003, at 17:49 Europe/Zurich, Angela K Hilton wrote:

> I have never fully resolved the problem with inheritence when using % 
> font
> sizes.
> does em pose the same problems?
Charles McCathieNevile                          Fundación Sidar
charles@sidar.org                                http://www.sidar.org
Received on Tuesday, 17 June 2003 15:40:05 UTC

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