W3C home > Mailing lists > Public > www-style@w3.org > February 2003

Re: Length unit relative to media width

From: John Lewis <lewi0371@mrs.umn.edu>
Date: Wed, 19 Feb 2003 05:07:48 -0600
Message-ID: <62213997311.20030219050748@cda.mrs.umn.edu>
To: www-style@w3.org

GS wrote on Wednesday, February 19, 2003 at 4:13:22 AM:

> The unit should be relative to the screen (or paper) width. The unit
> should be referenced to the preferred screen resolution.

> I suggest these units:
>    sw8     = (screen.width  /    800 ) px;
>    sw12    = (screen.width  /  1200 ) px;
>    sw16    = (screen.width  /  1600 ) px;
>    sw24    = (screen.width  /  2400 ) px;

It would be slightly more useful if an integer could be input
directly. The advantage is you could use nonstandard screen resolution
widths (like 666).

> example:
> H2 {   font-size: 36 sw12;  }

Also, this means we could avoid compatibility problems by using a new
property: screen-width, or something like that. For example:

h2{font-size:36px;screen-width:1200px}

Would it be more useful for implementers to scale with respect to the
screen width, screen height, or both? I'm leaning towards height,
since at least in English the font-size determines how tall the font
is (and not how wide), but I'm no expert.

What about taking physical screen size into account?

Personally, I'm fond of ems. But this idea is an interesting one.

--
John
Received on Wednesday, 19 February 2003 06:08:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:19 GMT