{"id":196160,"date":"2015-02-17T17:16:03","date_gmt":"2015-02-18T00:16:03","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=196160"},"modified":"2021-05-20T10:23:24","modified_gmt":"2021-05-20T17:23:24","slug":"background-origin","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/b\/background-origin\/","title":{"rendered":"background-origin"},"content":{"rendered":"\n

The background-origin<\/code> property defines where to paint the background: across the whole element, inside the border, or inside the padding.<\/p>\n\n\n\n

There are four values: border-box<\/code>, padding-box<\/code>, content-box<\/code> and inherit<\/code>. Here\u2019s a demo:<\/p>\n\n\n\n