object-position

The object-position CSS property specifies the alignment of the selected replaced element's contents within the element's box. Areas of the box which aren't covered by the replaced element's object will show the element's background.

Initial value 50% 50%
Applies to replaced elements

Syntax

  
object-position: right top;
  

Values

From one to four values that define the 2D position of the element. Relative or absolute offsets can be used.

Browser support

object-positionchrome32edge79firefox36ieopera19safari10
three_value_syntaxchrome32edge16firefox36ieopera19safari10

We use cookies to improve your experience. Learn more in our Privacy policy.

×