-
Notifications
You must be signed in to change notification settings - Fork 0
/
practice_DOM2.css
50 lines (50 loc) · 1.01 KB
/
practice_DOM2.css
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Georgia, 'Times New Roman', Times, serif;
}
html, body{
width: 100%;
height: 100%;
background-color: rgba(239, 225, 235, 0.885);
}
body{
display: flex;
align-items: center;
justify-content: center;
}
header{
justify-content: space-around;
text-align: center;
margin: 5px;
font-size: 1.2vw;
color: rgba(10, 77, 39, 0.846);
}
#container{
width: 400px;
height: 550px;
border-radius: 10px;
background-color: rgba(143, 214, 190, 0.717);
padding: 10px 10px 45px 10px;
align-items: center;
border: 3px solid #000;
}
#container img{
height: 100%;
width: 100%;
object-position: center;
object-fit: cover;
border-radius: 10px;
border: 3px solid #000;
}
#container i{
color: #fff;
font-size: 80px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%) scale(0);
opacity: 0.6;
transition-delay: transform ease 0.4s;
}