CSS Object-position Property

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. You can adjust how the replaced element’s object’s intrinsic size (that is, its natural size) is adjusted to fit within the element’s […]

CSS Object-fit Property

The object-fit CSS property sets how the content of a replaced element, such as an <img> or <video>, should be resized to fit its container. You can alter the alignment of the replaced element’s content object within the element’s box using the object-position property. Values fill: This is default. The replaced content is sized to […]