<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background-color: lightgreen;
border: 2px solid black;
padding: 10px;
}
#myDiv1 {
transform: translateY(30px); /* moves the element 30px along the y-axis */
}
#myDiv2 {
transform: translateY(50px); /* moves the element 50px along the y-axis */
}
#myDiv3 {
transform: translateY(-10px); /* moves the element -10px along the y-axis */
}
</style>
</head>
<body>
<h1>The translateY() function</h1>
<div>
This a normal div element.
</div>
<div id="myDiv1">
Div1.
</div>
<div id="myDiv2">
Div2.
</div>
<div id="myDiv3">
Div3.
</div>