Background
HTML Background Position Code
Control exactly where a background image sits within its element.
Live Tool
bg-position.css
Live
Preview
1How To Use
Follow these steps — no coding experience needed.
- Pick a 3x3 positionChoose any combination of left/center/right and top/center/bottom.
- Copy the CSSPairs naturally with background-repeat: no-repeat.
- Fine-tune laterYou can also use exact percentages or pixel values instead of keywords.
2Example Output
What this code looks like once it's on a real page.
3Browser Compatibility
| Browser | Support | Notes |
|---|---|---|
| Chrome | ✓ Supported | Full support |
| Firefox | ✓ Supported | Full support |
| Safari | ✓ Supported | Full support |
| Edge | ✓ Supported | Full support |
| Opera | ✓ Supported | Full support |
| Mobile browsers | ✓ Supported | Full support, iOS & Android |
Supported in every current browser — Chrome, Firefox, Safari, Edge and Opera all render this identically, on both desktop and mobile.
→Related Pages
More tools that pair naturally with this one.