pub enum Position {
    Static,
    Relative,
    Absolute,
    Fixed,
    Sticky,
    Var(CssVar),
}Expand description
Represents CSS position property values that control element positioning.
The position property specifies how an element is positioned in the document.
It works together with the top, right, bottom, and left properties to
determine the final position of the element.
§Examples
use mew_css::style;
use mew_css::values::{Position, Size};
// Default positioning (in the normal document flow)
let css1 = style().position(Position::Static).apply();
// Relative positioning (offset from normal position)
let css2 = style()
    .position(Position::Relative)
    .top(Size::Px(10))
    .left(Size::Px(20))
    .apply();
// Absolute positioning (relative to nearest positioned ancestor)
let css3 = style()
    .position(Position::Absolute)
    .top(Size::Px(0))
    .right(Size::Px(0))
    .apply();
// Fixed positioning (relative to viewport)
let css4 = style()
    .position(Position::Fixed)
    .bottom(Size::Px(20))
    .right(Size::Px(20))
    .apply();Variants§
Static
Default positioning in the normal document flow
Relative
Positioned relative to its normal position
Absolute
Positioned relative to the nearest positioned ancestor
Fixed
Positioned relative to the viewport
Sticky
Positioned based on scroll position (hybrid of relative and fixed)
Var(CssVar)
CSS variable reference
Trait Implementations§
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more