Skip to content

z-index

Utilities for controlling the vertical stacking order of positioned layers.

ISS preview
Iced + ISS preview demonstrating z-index
ISS preview for z-index
use iced::widget::container;
use iss::{tw, TwExt};
let popover = container(menu).tw(tw!("absolute top-10 right-0 z-40 bg-zinc-900 rounded-xl shadow-xl"));
Tailwind Class CSS Property / Effect iss::typed Builder
z-0 .. z-50 z-index: 0 .. 50; .z_0() .. .z_50()
-z-10 z-index: -10; .z(-10)
z-auto z-index: auto; .z_auto()
z-[100] z-index: 100; .z(100)
  • stack_tw sorts overlapping children by z-index with stable document-order tie-breaking; wrap in isolate when using negative -z-* layers.

position · isolation · top / right / bottom / left