← TechnologyThe essentials of

Right: the physical right edge stays right

Publisher: ResumeMaker • 1 source

Published: 23 Oct 2026 08:23 · Updated: 23 Oct 2026 08:23

AI source check: 22 Oct 2026 16:54. This is not editorial approval.

In a few sentences

In brief

right positions an element relative to the physical right edge according to its positioning mode. On an absolutely positioned button, right: 1rem sets an offset within its containing block.

Useful to know

right positions an element relative to the physical right edge according to its positioning mode. On an absolutely positioned button, right: 1rem sets an offset within its containing block. [1]

This does not automatically mean the end of a line in every language. If a component should follow writing direction, compare the physical rule with a logical offset and check both language directions.

Sources

For further detail and to check the information:

  1. [1] MDN — CSS right ↗