W3C home > Mailing lists > Public > www-style@w3.org > April 2014

Re: [css-text] Characters per line

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 22 Apr 2014 10:09:13 -0700
Message-ID: <CAAWBYDD83YR_UVh7Diqt_=w=8mc1774GM=m3rHGaQAvN0h+rQw@mail.gmail.com>
To: "mus@designtoday.co.uk" <mus@designtoday.co.uk>
Cc: Koji Ishii <kojiishi@gluesoft.co.jp>, "CSS WWW Style (www-style@w3.org)" <www-style@w3.org>, Zack Weinberg <zackw@panix.com>
On Tue, Apr 22, 2014 at 9:03 AM,  <mus@designtoday.co.uk> wrote:
> not sure if em would be the best measurement for this as it isnt font
> dependent. Perhaps using ex for compatibility with CH for those browsers
> that support it. Saw this on the quirksmode website that was quite useful.

Right, the .5em=1ch is only approximately true, just like .5em=1ex is
approximately true.  Using em as a fallback for ch is a good idea
currently, as support for the 'ch' unit is relatively recent:

p {
  width: 37.5em;
  width: 75ch;

Received on Tuesday, 22 April 2014 17:10:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:21 UTC