{"id":196146,"date":"2015-02-17T14:32:02","date_gmt":"2015-02-17T21:32:02","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=196146"},"modified":"2021-06-02T12:19:50","modified_gmt":"2021-06-02T19:19:50","slug":"background-position","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/b\/background-position\/","title":{"rendered":"background-position"},"content":{"rendered":"\n

The background-position<\/code> property in CSS allows you to move a background image (or gradient) around within its container.<\/p>\n\n\n\n

html {\n  background-position: 100px 5px; \n}<\/code><\/pre>\n\n\n\n

It has three different types of values:<\/p>\n\n\n\n