-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTask1.html
72 lines (64 loc) · 1.69 KB
/
Task1.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: auto;
height: auto;
flex:1;
display: flex;
justify-content: center;
align-items: center;
}
#box1, #box2, #box3, #box4{
width:35px;
height:140px;
}
#box1 {
position: absolute;
background-image: linear-gradient(rgba(255,0,0,1),blue);
border-radius: 0px 30px 0px 30px;
transform: rotate(135deg);
top: calc(0% - 0px);
left: calc(5% - 5px);
opacity: 0.5;
}
#box2 {
background-image: linear-gradient(rgb(191, 0, 255),blue);
border-radius: 0px 30px 0px 30px;
opacity: 0.5;
}
#box3 {
position: absolute;
background-image: linear-gradient(rgb(255, 0, 0),rgb(248, 197, 197));
border-radius: 0px 30px 0px 30px;
transform: rotate(90deg);
top: calc(10% - 10px);
left: calc(5% - 5px);
opacity: 0.5;
}
#box4 {
position: absolute;
background-image: linear-gradient(rgb(255, 162, 0),yellow);
border-radius: 0px 30px 0px 30px;
transform: rotate(50deg);
top: calc(10% - 10px);
left: calc(5% - 5px);
opacity: 0.5;
}
</style>
</head>
<body>
<div class="container">
<div id="box1"></div>
<div id="box2"></div>
<div id="box3"></div>
<div id="box4"></div>
</div>
</body>
</html