maxWidth

The max-width CSS property is used to set the maximum width of a given element. It prevents the used value of the width property from becoming larger than the value specified for max-width.

See also

<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/max-width">MDN</a>

trait ZeroLit
class Object
trait Matchable
class Any

Value members

Inherited methods

final def 0: AV

The digit zero. "0".

The digit zero. "0".

Inherited from
ZeroLit
final def apply(v: ValueT[LenPct]): AV
Inherited from
TypedAttrT1
final def containFloats: AV
Inherited from
TypedAttr_MaxLength
final def fillAvailable: AV
Inherited from
TypedAttr_MaxLength
final def fitContent: AV
Inherited from
TypedAttr_MaxLength
def inherit: AV

The inherit CSS-value causes the element for which it is specified to take the computed value of the property from its parent element. It is allowed on every CSS property.

The inherit CSS-value causes the element for which it is specified to take the computed value of the property from its parent element. It is allowed on every CSS property.

For inherited properties, this reinforces the default behavior, and is only needed to override another rule. For non-inherited properties, this specifies a behavior that typically makes relatively little sense and you may consider using initial instead, or unset on the all property.

Inherited from
TypedAttrBase
def initial: AV

The initial CSS keyword applies the initial value of a property to an element. It is allowed on every CSS property and causes the element for which it is specified to use the initial value of the property.

The initial CSS keyword applies the initial value of a property to an element. It is allowed on every CSS property and causes the element for which it is specified to use the initial value of the property.

Inherited from
TypedAttrBase
final def maxContent: AV
Inherited from
TypedAttr_MaxLength
final def minContent: AV
Inherited from
TypedAttr_MaxLength
final def none: AV
Inherited from
TypedAttr_MaxLength
override def toString: String
Definition Classes
Inherited from
TypedAttrBase
def unset: AV

The unset CSS keyword is the combination of the initial and inherit keywords. Like these two other CSS-wide keywords, it can be applied to any CSS property, including the CSS shorthand all. This keyword resets the property to its inherited value if it inherits from its parent or to its initial value if not. In other words, it behaves like the inherit keyword in the first case and like the initial keyword in the second case.

The unset CSS keyword is the combination of the initial and inherit keywords. Like these two other CSS-wide keywords, it can be applied to any CSS property, including the CSS shorthand all. This keyword resets the property to its inherited value if it inherits from its parent or to its initial value if not. In other words, it behaves like the inherit keyword in the first case and like the initial keyword in the second case.

Inherited from
TypedAttrBase

Inherited fields

override val attr: Attr
Inherited from
TypedAttr_MaxLength