HomeReferencesCSS Properties

CSS Property: background-position

Specifies the position of a background image within its containing element. The value can be single, such as top or double such a top right.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • top
  • right
  • bottom
  • left
  • center
  • [combination]
  • [percentage]
  • [length]

Example


.winehouse { background-position: bottom right; }