← Back to Glossary

top

Display & Positioning

Specifies top coordinate margins for positioned elements (also maps to `right`, `bottom`, `left` rules).

Common Value Formats

  • top: 10px; Offset 10px from top boundary
  • top: 0; Align directly to top
  • top: 50%; Offsets halfway down parent bounds
interactive-example.html
Live Preview