display

object display extends Style

The display CSS property specifies the type of rendering box used for an element. In HTML, default display property values are taken from behaviors described in the HTML specifications or from the browser/user default stylesheet. The default value in XML is inline.

In addition to the many different display box types, the value none lets you turn off the display of an element; when you use none, all descendant elements also have their display turned off. The document is rendered as though the element doesn't exist in the document tree.

MDN

class Style
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
display.type

Value members

Inherited methods

def :=[Builder, T](v: T)(implicit ev: StyleValue[Builder, T]): StylePair[Builder, T]

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Inherited from:
Style
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

lazy val block: StylePair[Builder, String]

The element generates a block element box.

The element generates a block element box.

MDN

lazy val flex: StylePair[Builder, String]

The element behaves like a block element and lays out its content according to the flexbox model.

The element behaves like a block element and lays out its content according to the flexbox model.

MDN

lazy val inline: StylePair[Builder, String]

The element generates one or more inline element boxes.

The element generates one or more inline element boxes.

MDN

lazy val inline-block: StylePair[Builder, String]

The element generates a block element box that will be flowed with surrounding content as if it were a single inline box.

The element generates a block element box that will be flowed with surrounding content as if it were a single inline box.

MDN

lazy val inline-flex: StylePair[Builder, String]

The element behaves like an inline element and lays out its content according to the flexbox model.

The element behaves like an inline element and lays out its content according to the flexbox model.

MDN

lazy val inline-table: StylePair[Builder, String]

The inline-table value does not have a direct mapping in HTML. It behaves like a table HTML element, but as an inline box, rather than a block-level box. Inside the table box is a block-level context

The inline-table value does not have a direct mapping in HTML. It behaves like a table HTML element, but as an inline box, rather than a block-level box. Inside the table box is a block-level context

MDN

lazy val list-item: StylePair[Builder, String]

The element generates a block box for the content and a separate list-item inline box.

The element generates a block box for the content and a separate list-item inline box.

MDN

lazy val none: StylePair[Builder, String]

Turns off the display of an element (it has no effect on layout); all descendant elements also have their display turned off. The document is rendered as though the element did not exist.

Turns off the display of an element (it has no effect on layout); all descendant elements also have their display turned off. The document is rendered as though the element did not exist.

To render an element box's dimensions, yet have its contents be invisible, see the visibility property.

MDN

lazy val table: StylePair[Builder, String]

Behaves like the table HTML element. It defines a block-level box.

Behaves like the table HTML element. It defines a block-level box.

MDN

lazy val table-caption: StylePair[Builder, String]

Behaves like the caption HTML element.

Behaves like the caption HTML element.

MDN

lazy val table-cell: StylePair[Builder, String]

Behaves like the td HTML element

Behaves like the td HTML element

MDN

lazy val table-column: StylePair[Builder, String]

These elements behave like the corresponding col HTML elements.

These elements behave like the corresponding col HTML elements.

MDN

lazy val table-column-group: StylePair[Builder, String]

These elements behave like the corresponding colgroup HTML elements.

These elements behave like the corresponding colgroup HTML elements.

MDN

lazy val table-header-group: StylePair[Builder, String]

These elements behave like the corresponding thead HTML elements

These elements behave like the corresponding thead HTML elements

MDN

lazy val table-row: StylePair[Builder, String]

Behaves like the tr HTML element

Behaves like the tr HTML element

MDN

lazy val table-row-group: StylePair[Builder, String]

These elements behave like the corresponding tbody HTML elements

These elements behave like the corresponding tbody HTML elements

MDN