whiteSpace

object whiteSpace extends Style[String]

The white-space CSS property is used to to describe how whitespace inside the element is handled.

The white-space CSS property is used to to describe how whitespace inside the element is handled.

MDN

class Style[String]
class Key
class Object
trait Matchable
class Any

Value members

Concrete fields

lazy val normal: StyleSetter

Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Breaks lines as necessary to fill line boxes.

Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Breaks lines as necessary to fill line boxes.

MDN

lazy val nowrap: StyleSetter

Collapses whitespace as for normal, but suppresses line breaks (text wrapping) within text.

Collapses whitespace as for normal, but suppresses line breaks (text wrapping) within text.

MDN

lazy val pre: StyleSetter

Sequences of whitespace are preserved, lines are only broken at newline characters in the source and at br elements.

Sequences of whitespace are preserved, lines are only broken at newline characters in the source and at br elements.

MDN

lazy val preLine: StyleSetter

Sequences of whitespace are collapsed. Lines are broken at newline characters, at br, and as necessary to fill line boxes.

Sequences of whitespace are collapsed. Lines are broken at newline characters, at br, and as necessary to fill line boxes.

MDN

lazy val preWrap: StyleSetter

Sequences of whitespace are preserved. Lines are broken at newline characters, at br, and as necessary to fill line boxes.

Sequences of whitespace are preserved. Lines are broken at newline characters, at br, and as necessary to fill line boxes.

MDN

Inherited fields

override val name: String
Inherited from
Style