1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<!DOCTYPE html> <html lang="en"> <meta charset="utf-8"> <title>Reference for properly handled background-position changes.</title> <style> body { margin: 0; } #background { width: 100px; height: 100px; background-color: lime; } </style> <div id="background"></div>