monks/float

The float CSS property places an element on the left or right side of its container, allowing text and inline elements to wrap around it. The element is removed from the normal flow of the page, though still remaining a part of the flow (in contrast to absolute positioning).

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const inline_end: #(String, String)
  • : The element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts.
pub const inline_start: #(String, String)
  • : The element must float on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts.
pub const left: #(String, String)
  • : The element must float on the left side of its containing block.
pub const none: #(String, String)
  • : The element must not float.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for float

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const right: #(String, String)
  • : The element must float on the right side of its containing block.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document