W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [media-queries] chicken-egg problem with font-based lengths

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Mon, 20 Aug 2012 11:39:49 +0200
Message-ID: <503205E5.9090203@kozea.fr>
To: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
CC: www-style@w3.org
Le 20/08/2012 11:32, Giuseppe Bilotta a écrit :
> So, if I understand your suggestion correctly, I can set the font size
> of the html element explicitly, provided that I then use fixed widths
> in the media queries, manually computed from the fixed font size that
> I select (e.g. if I set a font size of 12pt, then I should replace a
> media query for 66em with a media query for 1056px, and the media
> query will trigger correctly regardless of the actual font family that
> gets selected.

Yes, this is what I was suggesting.

A small note: you can use font-size: 16px instead of 12pt, they’re 
always the same in CSS. It makes one less conversion to deal with.


Simon Sapin
Received on Monday, 20 August 2012 09:40:18 UTC

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