HTML translate Attribute code example
Example 1: translate html
<p translate="no">Don't translate this!</p>
<p>This can be translated to any language.</p>
Example 2: translate css property
transform: translate(200px);
transform: translate(50%);
transform: translate(100px, 200px);
transform: translate(100px, 50%);
transform: translate(30%, 200px);
transform: translate(30%, 50%);
transform: translate(90%, 90%);
Example 3: translate css property
div {
width: 60px;
height: 60px;
background-color: skyblue;
}
.moved {
transform: translate(50px, 10px);
background-color: pink;
}