background-position

Sets the initial position for each background image. This position is relative to the position criteria set by background-origin.

Example

Initial value 0% 0%
Applies to all elements. It also applies to ::first-letter and ::first-line.

Syntax

  
background-position: center;
  

Values

The horizontal position of the background. If two values are set, the first one is the horizontal position and the seocond is the vertical position of the background.

Browser support

background-position112143.51
multiple_backgrounds1123.6910.51.3
4_value_syntax251213910.57

We use cookies to improve your experience. Learn more in our Privacy policy.

×