<!DOCTYPE html> <html> <head> <style> div { position: absolute; padding: 2px; left: 100px; top: 700px; width: 100px; height: 100px; background: yellow; -moz-transform: translate(0, -400px); transform: translate(0, -400px); } </style> </head> <body> <div>Hello</div> </body> </html>