display

object display extends Style[String]

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.

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[String]
class Key
class Object
trait Matchable
class Any

Value members

Concrete fields

lazy val block: StyleSetter

The element generates a block element box.

The element generates a block element box.

MDN

lazy val flex: StyleSetter

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: StyleSetter

The element generates one or more inline element boxes.

The element generates one or more inline element boxes.

MDN

lazy val inlineBlock: StyleSetter

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 inlineFlex: StyleSetter

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 inlineTable: StyleSetter

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 listItem: StyleSetter

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: StyleSetter

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: StyleSetter

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 tableCaption: StyleSetter

Behaves like the caption HTML element.

Behaves like the caption HTML element.

MDN

lazy val tableCell: StyleSetter

Behaves like the td HTML element

Behaves like the td HTML element

MDN

lazy val tableColumn: StyleSetter

These elements behave like the corresponding col HTML elements.

These elements behave like the corresponding col HTML elements.

MDN

lazy val tableColumnGroup: StyleSetter

These elements behave like the corresponding colgroup HTML elements.

These elements behave like the corresponding colgroup HTML elements.

MDN

lazy val tableFooterGroup: StyleSetter

These elements behave like the corresponding tfoot HTML elements

These elements behave like the corresponding tfoot HTML elements

MDN

lazy val tableHeaderGroup: StyleSetter

These elements behave like the corresponding thead HTML elements

These elements behave like the corresponding thead HTML elements

MDN

lazy val tableRow: StyleSetter

Behaves like the tr HTML element

Behaves like the tr HTML element

MDN

lazy val tableRowGroup: StyleSetter

These elements behave like the corresponding tbody HTML elements

These elements behave like the corresponding tbody HTML elements

MDN

Inherited fields

override val name: String
Inherited from
Style