object-position
Utilities for controlling the focal alignment of an image inside its container bounds.
ISS preview

Examples
Section titled “Examples”use iss::{image_tw, tw};
let portrait = image_tw(handle, tw!("size-24 object-cover object-top rounded-full"));use iss::typed::*;
let portrait = image_tw(handle, IssStyle::new().size(24).object_cover().object_top().rounded_full());Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
object-center |
object-position: center; |
.object_center() |
object-top / bottom |
object-position: top / bottom; |
.object_top() / .object_bottom() |
object-left / right |
object-position: left / right; |
.object_left() / .object_right() |
object-top-left .. object-bottom-right |
object-position: top left .. bottom right; |
.object_top_left() |
object-left-top / object-right-bottom |
Alias corner positions; |
.object_top_left() / .object_bottom_right() |
Behavior Notes
Section titled “Behavior Notes”- Use with
image_tw(handle, style)alongsideobject-coverorobject-none.