W3C home > Mailing lists > Public > w3c-wai-er-ig@w3.org > February 2000

relative units of measure (Technique 3.4.1 [priority 2] Check document for relative units of measure.)

From: Wendy A Chisholm <wendy@w3.org>
Date: Fri, 18 Feb 2000 16:09:45 -0500
Message-Id: <4.2.0.58.20000218154838.00b0a420@localhost>
To: w3c-wai-er-ig@w3.org, kasday@pop3.concentric.net
Len, for the following checkpoint:

| Technique 3.4.A [priority 2] Check document for relative or absolute units.
|
| * This element uses absolute units of measure rather than relative units
| of measure.
|
| Repair Technique:
|
| * Allow user to change the units of measure.

you asked:
LRK:: what if the absolute units are in a style sheet?

Style sheets should also use relative units of measure.  Even if someone is 
making use of the absolute positioning techniques of css2 it does not mean 
that they have to use absolute units of measure.  it's preferred that 
relative units of measure are used for all positioning and font sizing.

as noted in the revision of 3.4.1, the only exception is the height and 
width of images since images could distort if relative units are used.

an example of absolute positioning with relative units of measure:
#menuBar {
         position: absolute;
         left: 0em;
         top: 5em;
         width: 100%;
         height: 2em;
         border: .5em solid rgb(50%,75%,100%);
         background-color: rgb(50%,75%,100%);
         layer-background-color: rgb(50%,75%,100%)}

does this answer your question?
--wendy
--
wendy a chisholm
world wide web consortium
web accessibility initiative
madison, wi usa
tel: +1 608 663 6346
/--
Received on Friday, 18 February 2000 16:05:47 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Thursday, 9 June 2005 12:10:34 GMT