monks/flex_wrap

The flex-wrap CSS property sets whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction that lines are stacked.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const nowrap: #(String, String)
  • : The flex items are laid out in a single line which may cause the flex container to overflow. The cross-start is the equivalent of inline-start or block-start, depending on the {{cssxref(“flex-direction”)}} value. This is the default value.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for flex-wrap

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 flex-wrap. It will be wrapped in var() and have -- prepended.

pub const wrap: #(String, String)
  • : The flex items break into multiple lines. The cross-start is the equivalent of inline-start or block-start, depending on the current writing mode, and the {{cssxref(“flex-direction”)}} value.
pub const wrap_reverse: #(String, String)
  • : Behaves the same as wrap, but cross-start and cross-end are inverted.
Search Document