-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss-position.css
More file actions
74 lines (65 loc) · 1.02 KB
/
css-position.css
File metadata and controls
74 lines (65 loc) · 1.02 KB
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
73
74
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.wrapper {
width: 100%;
min-height: 1000px;
background-color: #efefef;
}
.box {
width: 300px;
height: 300px;
background-color: red;
position: relative;
top: 100px;
left: 100px;
}
.inner {
width: 70%;
height: 70%;
background-color: green;
position: absolute;
top: 15%;
left: 15%;
transform: rotate(45deg);
}
.circle {
width: 60%;
height: 60%;
background-color: red;
position: absolute;
top: 20%;
left: 20%;
border-radius: 50%;
}
.wrapper2 {
width: 100%;
min-height: 1000px;
background-color: #d6d3d3;
}
.box2 {
width: 80%;
height: 200px;
background-color: green;
position: relative;
left: 10%;
top: 50px;
}
.icon {
width: 50px;
height: 50px;
background-color: red;
position: absolute;
transform: rotate(45deg);
z-index: -1;
}
.left-icon {
top: 75px;
left: -20px;
}
.right-icon {
top: 75px;
right: -20px;
}