Skip to content

box-sizing

Utilities for controlling whether padding and borders are included in an element’s declared width and height.

ISS preview
Iced + ISS preview demonstrating box-sizing
ISS preview for box-sizing
use iced::widget::container;
use iss::{tw, TwExt};
let box_el = container(inner).tw(tw!("size-32 p-4 border-4 border-sky-500 box-border"));
Tailwind Class CSS Property / Effect iss::typed Builder
box-border box-sizing: border-box; .box_border()
box-content box-sizing: content-box; .box_content()

width · height · padding · border-width