CSS background-position Property Reference

The CSS background-position property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

CSS background-position Property Reference

The CSS background-position property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

background-position overview

The CSS background-position property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

background-position formal syntax
FieldValue
Formal syntax<bg-position>#
Initial value0% 0%
Applies toallElements
InheritedNo
PercentagesreferToSizeOfBackgroundPositioningAreaMinusBackgroundImageSize
Computed valuebackground-position-x, background-position-y
Animation typerepeatableList
Mediavisual
Specification groupCSS Backgrounds and Borders
StatusStandard

Practical examples

These declarations demonstrate valid ways to set background-position. The initial and inherit global keywords remain available even when a property-specific value is preferable.

background-position live example
CSS .reset-example { background-position: initial; } .inherit-example { background-position: inherit; } @supports (background-position: initial) { .supported { background-position: initial; } }

Description

The CSS background-position property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: background-position
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies