use position relative and absolute in one code example Example: css tricks position .element { position: relative; top: 50px; }