top / right / bottom / left
Utilities for placing positioned elements using physical or logical inset coordinates.
ISS preview

Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let backdrop = container(modal).tw(tw!("absolute inset-0 flex items-center justify-center bg-black/60"));use iss::typed::*;
let style = IssStyle::new().absolute().inset_0().bg(palette::BLACK.alpha(0.6));Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
inset-0 / inset-auto |
inset: 0px / auto; |
.inset_0() / .inset_auto() |
inset-<n> / inset-x-<n> / inset-y-<n> |
inset / inset-inline / inset-block; |
.inset(4) / .inset_x(2) |
top-<n> / right-<n> / bottom-<n> / left-<n> |
top / right / bottom / left; |
.top(2) / .right(3) |
start-<n> / end-<n> |
inset-inline-start / inset-inline-end; |
.start(4) / .end(4) |
top-1/2 / -left-2 / top-[14px] |
Fractions, negatives, and arbitrary lengths; |
.top_frac(1, 2) / .left_px(14) |
Behavior Notes
Section titled “Behavior Notes”- Logical
start-*andend-*offsets flip automatically insidedir_rtl(...).