The object-position property determines the alignment of the replaced element inside its box.

  • Initial value50% 50%
  • Applies toReplaced elements
  • InheritedNo
  • MediaVisual
  • Computed valueSpecified value
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript
Formal syntax: <position> 

object-position: <position>;
  • <position>Specifies the position of a object area (e.g. background image) inside a positioning area (e.g. background positioning area).
.class {
   object-position: 50% 50%;

Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.