Skip to main content

Top / Right / Bottom / Left

Atomic props for controlling the placement of positioned elements.

Atomic PropsCSS Properties
top-{value} / top={value}top={value}
right-{value} / right={value}right={value}
bottom-{value} / bottom={value}bottom={value}
left-{value} / left={value}left={value}

Top

Use top props to set an element's top position.

Result
Loading...
Live Editor

Use right props to set an element's right position.

Result
Loading...
Live Editor

Bottom

Use bottom props to set an element's bottom position.

Result
Loading...
Live Editor

Left

Use left props to set an element's left position.

Result
Loading...
Live Editor

Negative values

Use right--{value} like props to set an element's Negative position.

Result
Loading...
Live Editor