Constant freya_elements::elements::image::position_right
source · pub const position_right: (&'static str, Option<&'static str>, bool);
Expand description
Specify the right position of an element when using position: "absolute"
or position: "global"
.
This supports pixels only.
§Example
fn app() -> Element {
rsx!(
rect {
width: "100%",
height: "100%",
rect {
position: "absolute",
position_top: "15",
position_right: "15",
background: "black",
width: "100",
height: "100",
}
}
)
}