monks/field_sizing

{{seecompattable}}

The field-sizing CSS property enables you to control the sizing behavior of elements that are given a default preferred size, such as form control elements. This property enables you to override the default sizing behavior, allowing form controls to adjust in size to fit their contents.

This property is typically used to style text {{htmlelement(“input”)}} and {{htmlelement(“textarea”)}} elements to allow them to shrinkwrap their content as well as grow when more text is entered into the form control.

Values

pub const content: #(String, String)
  • : Allows the element to adjust its size to fit its contents.
pub const fixed: #(String, String)
  • : Sets a fixed size for the element. This is the default value.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for field-sizing

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for field-sizing. It will be wrapped in var() and have -- prepended.

Search Document