object-position chooses which part of media remains visible when object-fit causes cropping.
Typical use
- Keep subject face in crop focus.
- Align horizon for hero banners.
- Adjust art direction across breakpoints.
Important interview questions and answers
- Q: Why combine object-position with cover?
A: Cover crops; object-position controls crop focal point. - Q: Value examples?
A:50% 20%,center top,right center. - Q: Better than manual image editing always?
A: Not always; art direction may still require alternate assets.
Practice: Change one property in the playground and observe cascade + layout in DevTools.