Constant freya::elements::paragraph::position_top
source · pub const position_top: (&'static str, Option<&'static str>, bool);
Expand description
Specify the top 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_left: "15",
background: "black",
width: "100",
height: "100",
}
}
)
}