|
|
|
|
|
Web Accessibility: Units (Sizes/Lengths)Use Relative Rather Than Absolute UnitsIndividuals use a wide variety of viewing devices, from very large monitors to tiny screens on handheld devices, and the content should flow into the appropriate size. This does not happen when absolute position and length units are used. Users need to be able to change the size of text to compensate for the resolution or size of their device or because of a visual impairment.
Use the "em" Unit to Set Font SizesFor example, use:
H1 { font-size: 2em }
rather than:
H1 { font-size: 12pt }
Use Relative Length Units and PercentagesFor example:
BODY { margin-left: 20%; margin-right: 15% }
Use Percentages to Define Sizes of Tables and FramesFor example:
And for frames:
|