css change position of element code example Example 1: html css position .class{ position: attribute ; } Example 2: adjusting y pos of element in css top: 150px;