<!DOCTYPE html> | |
<html> | |
<!-- | |
| Apply translate to overflow hidden. | |
| https://www.w3.org/TR/CSS21/visufx.html | |
--> | |
<head> | |
<style> | |
body { | |
font-family: Roboto; | |
font-size: 16px; | |
} | |
.translate { | |
width: 550px; | |
height: 20px; | |
overflow: hidden; | |
background-color: rgb(0, 128, 128); | |
transform: translateX(50px) translateY(5px); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="translate"> | |
<div> Apply translate to overflow hidden. </div> | |
<div> This line is invisible. </div> | |
</div> | |
</body> | |
</html> |