position
Utilities for controlling how an element is positioned in normal flow or overlay stacks.
ISS preview

Examples
Section titled “Examples”use iss::{stack_tw, box_tw, tw};
let card = stack_tw([ base_card, box_tw(badge, tw!("absolute top-2 right-2 z-10 px-2 py-0.5 bg-blue-600 rounded-md")),], tw!("relative w-64 h-40"));use iss::typed::*;
let badge_style = IssStyle::new().absolute().top(2).right(2).z_10();Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
static |
position: static; |
.pos_static() |
relative |
position: relative; |
.relative() |
absolute |
position: absolute; |
.absolute() |
fixed |
position: fixed; |
.fixed() |
sticky |
position: sticky; |
.sticky() |
Behavior Notes
Section titled “Behavior Notes”- Use
stack_twto layerabsoluteoverlays inside arelativeanchor container. - The typed builder method for
staticis.pos_static()becausestaticis a Rust keyword.