Home
CSS
CSS 2D Transforms
Tryit: The translate() method
Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Save Code
Ctrl+Alt+A
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
The translate() Method
The translate() method moves an element from its current position:
This div element is moved 50 pixels to the right, and 100 pixels down from its current position.