position

The position CSS data type represents information for positioning an element in horizontal and vertical directions using a mix of keywords, percentage, and length values. The position data type is used in the background-position and offset-anchor properties.

Syntax



position = [
  [ left | center | right ] || [ top | center | bottom ]
|
  [ left | center | right | length-percentage ]
  [ top | center | bottom | length-percentage ]?
|
  [ [ left | right ] length-percentage ] &&
  [ [ top | bottom ] length-percentage ]
]