CSS text-autospace Property
Description
The text-autospace property controls the automatic adjustment of spacing around characters in scripts that have mixed full-width and half-width glyphs — most commonly East Asian (CJK) text mixed with Latin letters, numbers, or punctuation. Its purpose is typographic: to reduce awkward gaps or collisions that occur when characters of differing widths meet, by adapting inter-character spacing so the text reads more evenly and appears visually balanced. This is particularly important for multi-script content where default spacing rules can leave large white spaces around punctuation or cause punctuation to crowd adjacent ideographs.
On a practical level, using text-autospace influences how line breaks and justification look because it subtly changes spacing relationships inside runs of text. It therefore interacts with other spacing-related CSS properties — for instance letter-spacing and word-spacing — and should be considered when you are fine-tuning typographic rhythm. When combined with alignment or justification rules (see text-align), automatic adjustment can affect visual ragging and the optical center of a block, so designers often adjust these properties together to achieve the desired outcome.
From a design and accessibility standpoint, text-autospace is a tool for improving readability in localized or multilingual interfaces. It can make sentences with mixed scripts feel more natural and reduce the cognitive load for readers of East Asian languages. However, because it alters spacing at a character level, it should be used consistently across comparable elements (headings, body text, captions) to avoid uneven visual weight. Also consider font choice and metrics — some fonts already include well-designed CJK spacing, and excessive automatic adjustment may conflict with a typeface’s intended proportions.
In workflow terms, adopt text-autospace when you encounter visible spacing problems in mixed-script content and test its effect across typical line lengths and sizes. For tightly controlled typographic layouts (for example, print-like pages or UI components where exact spacing is critical), use it in combination with other typographic properties and preview with representative content; for more fluid interfaces, it can often be left to the browser’s automatic handling as a readability enhancement. Finally, remember that typographic tuning is iterative: small adjustments, careful comparisons, and user testing will help determine whether text-autospace improves the reading experience for your audience.
Definition
- Initial value
- normal
- Applies to
- text-elements
- Inherited
- yes
- Computed value
- as specified
- Animatable
- yes
- JavaScript syntax
- object.style.textAutospace
Syntax
selector {
text-autospace: auto | no-autospace | [ <autospace-type> || <autospace-range> ];
}
Values
- autoThe browser applies a default spacing behavior, usually inserting space between East Asian and Latin scripts.
- no-autospaceDisables all automatic spacing.
- normalEquivalent to auto, applying standard spacing rules.
- ideograph-alphaSpecifically creates extra spacing between ideographs and alphabetic characters.
- ideograph-numericSpecifically creates extra spacing between ideographs and numeric digits.
Example
Browser Support
The following information will show you the current browser support for the CSS text-autospace property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported in some modern browsers, but not all.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
