Constant freya_elements::elements::image::offset_y
source · pub const offset_y: (&'static str, Option<&'static str>, bool);
Expand description
Moves the content inside of the container vertically by the specified pixel amount. This attribute only supports pixels.
§Example
fn app() -> Element {
rsx!(
rect {
width: "200",
height: "200",
background: "gray",
offset_y: "30", // Shifts content 30 pixels down
rect {
width: "100",
height: "100",
background: "red",
}
}
)
}