{"id":194885,"date":"2015-02-03T09:12:46","date_gmt":"2015-02-03T16:12:46","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=194885"},"modified":"2021-05-24T07:27:30","modified_gmt":"2021-05-24T14:27:30","slug":"object-position","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/o\/object-position\/","title":{"rendered":"object-position"},"content":{"rendered":"\n
The CSS property While it\u2019s probably most common to see object-position<\/code> is used to align any selected replaced element (e.g., an
<img><\/code>) within the box that contains it.<\/p>\n\n\n\n
img {\n object-position: right bottom;\n}<\/code><\/pre>\n\n\n\n\n\n\n\n
<img><\/code> element will align to bottom-right edge of its parent container with
object-position: right bottom;<\/code>.<\/figcaption><\/figure>\n\n\n\n
object-position<\/code> used on
<img><\/code> elements, it can be used on other types of replaced elements, like
<iframe><\/code>,
<video><\/code>, and
<embed><\/code>.<\/p>\n\n\n\n