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