-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtransform.html
More file actions
34 lines (32 loc) · 853 Bytes
/
transform.html
File metadata and controls
34 lines (32 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Transform - Property.</title>
<style>
.div1{
width: 150px;
height: 80px;
background-color: orange;
/*transform: rotate(40deg);*/
transform: translate(40px,40px);
border: 1px black;
border-radius: 2px;
}
.div2{
width: 150px;
height: 80px;
background-color: yellow;
transform: skew(30deg);
}
</style>
</head>
<body>
<h1>Transformation in html</h1>
<div class="div1">This is first div</div>
<br/>
<div class="div2">This is second div</div>
</body>
</html>