property

white-space-trim — CSS reference

Draft whitespace control for trimming at element boundaries or within an element. Initial none. Keep standard whitespace processing as fallback until support is established.

Formal Syntax & Structure

css syntaxcss
none | discard-before || discard-after || discard-inner

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS text lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{white-space-trim:discard-before}</style><body><p id="a">Design readable interfaces with CSS.</p><p lang="fa" dir="rtl">متن فارسی برای آزمایش چیدمان</p></body></html>
CSS Reference