{"id":16536,"date":"2012-03-19T20:03:24","date_gmt":"2012-03-20T03:03:24","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=16536"},"modified":"2022-09-28T13:14:10","modified_gmt":"2022-09-28T20:14:10","slug":"position","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/p\/position\/","title":{"rendered":"position"},"content":{"rendered":"\n

The position<\/code> property can help you manipulate the location of an element, for example:<\/p>\n\n\n\n

.element {\n  position: relative;\n  top: 20px;\n}<\/code><\/pre>\n\n\n\n

Relative to its original position the element above will now be nudged down from the top by 20px. If we were to animate these properties we can see just how much control this gives us (although this isn\u2019t a good idea for performance reasons):<\/p>\n\n\n\n