W3docs

transform translateX

CSS Property:

Result:

Example of the CSS transform property

CSS Code:

#myDiv {
width: 150px;
height: 80px;
background-color:pink;
transform:translateX(5px);
}

Click the property values above to see the result