Move the <div> element 100px to the right, and 200px down. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Move the <div> element 100px to the right, and 200px down.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
div {<!--from w  ww  .  ja v  a 2  s.  com-->
    width: 100px;
    height: 100px;
    background-color: pink;
    border: 1px solid black;
    transform: translate(100px,200px);
}

</style>
</head>
<body>

<div></div>

</body>
</html>

Related Tutorials