css.properties

white-space-trim

Trims whitespace around elements.

Draft โ€” This property is defined in a W3C Draft and may be subject to change

Formal Syntax

none | discard-before || discard-after || discard-inner

See specification

JavaScript Access

// Access via element.style
element.style.whiteSpaceTrim = 'none';

Browser Support

This property is defined in a W3C Draft and may be subject to change. Browser support data is not yet available.

Related Properties