This property can accept keywords, length values, and percentage values. The first value determines the horizontal position. For the first value, we will use the keyword center, and as you would expect, it centers the image in the container.

The second value sets the vertical position of the image, however, if we do not specify a second value, the browser will assume that the second value is also centered.