CSS3 translate() method Examples




CSS3 translate() method Examples

<!DOCTYPE html>
<html>
   <head>
      <title>CSS3 translate() method Examples</title>
      <style type="text/css">
         img {
            -webkit-transform: translate(200px, 50px); 
           -moz-transform: translate(200px, 50px); 
           -ms-transform: translate(200px, 50px); 
            transform: translate(200px, 50px);    
         }
        .box{
            margin: 50px;
            width:153px;
            height:103px;
            background: url("css3.jpg") no-repeat;
         }
      </style>
   </head>
   <body>
      <div class="box">
         <img src="css3.jpg" alt="CSS3">
      </div>
</body>
</html> 

Output