CSS · The box model
object-position
Chooses the focal point when object-fit crops the media.
Syntax
object-position: centerExample
Try it
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.