Skip to content

WCAG 2.1 - 1.4.12 Text Spacing (AA) by stephenbelyea

Screenshot of WCAG 2.1 - 1.4.12 Text Spacing (AA)

Details

Authorstephenbelyea

LicenseNo License

Category*

Created

Updated

Size315 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Applies line-height of 1.5, letter-spacing of 0.12em, and word-spacing of 0.16em to all elements. Applied top margin of 2em to any element following a p tag.

Notes

Preview image features the homepage for Smashing Magazine with these custom styles installed and enabled.

Source code

/* ==UserStyle==
@name       WCAG 1.4.12 Text Spacing
@version    20240501.15.03
@namespace  ?
==/UserStyle== */

@-moz-document url-prefix() {

* {
  line-height: 1.5 !important;
  letter-spacing: 0.12em !important;
  word-spacing: 0.16em !important;
}

p + * {
  margin-top: 2em !important;
}

}

Reviews

No reviews yet.