CSS Properties

User Guide / CSS Reference / CSS Properties

background-position

Syntax

background-position: left || right || top || bottom || center || length || percent

Default

top left

Inherited

No

Comments

The background-position property determines the position of the background image relative to the top-left corner of the padding area of the element in which it appears.

Note that the background-attachment property can be used to change the origin relative to which the background image is positioned.