Inappropriate Measurement Unit Check

RuleSets of AccessMonitor - the validator of web accessibility practices

Inappropriate Measurement Unit Check

Description

The “Inappropriate Measurement Unit Check” evaluates whether there is any usage of fixed units (e.g., px) for defining the width of text containers.

Example outcome

I identified 1 instance in the CSS where px measurement unit is used to define the width of text boxes.

Impact

Fixes

To address inappropriate measurement units:

  1. Locate the CSS code where the fixed unit is used.
  2. Replace the fixed unit by a relative one (e.g., %)

Resources