object-position for Adjusting Image Placement in CSS


Fine-tune the position of an image within its container.

Source Code

img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top right;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments