-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex4.html
More file actions
99 lines (96 loc) · 1.7 KB
/
index4.html
File metadata and controls
99 lines (96 loc) · 1.7 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
/* .block {
width: 100px;
height: 100px;
background-color: aqua;
margin-bottom: 5px;
font-size: 50px;
color: #fff;
font-weight: 600;
text-align: center;
line-height: 100px;
}
.relative {
position: relative;
top: 50px;
left: 50px;
}
.absolute {
position: absolute;
left: 0;
top: 0;
}
.fixed {
position: fixed;
top: 50%;
left: 50%;
margin-top: -50px;
margin-left: -50px;
}
.static {
position: static;
} */
.phone {
width: 600px;
height: 300px;
border: 3px solid chocolate;
border-radius: 20px;
margin: 20px auto;
box-shadow: 11px 16px 14px -1px rgba(0, 0, 0,0.75);
box-sizing: border-box;
padding: 10px 50px 10px 28px;
position: relative;
}
.screen {
width: 100%;
height: 100%;
border: 1px solid black;
}
.screen:after {
content:'';
display: block;
height: 35px;
width: 35px;
border-radius: 20px;
border: 2px solid chocolate;
position: absolute;
margin-top: -17.5px;
top: 50%;
right: 5px;
}
.screen img {
width: 100%;
height: 100%;
}
.screen:before {
content: '';
display: block;
height: 50px;
width: 5px;
border-radius: 5px;
border: 2px solid chocolate;
position: absolute;
margin-top: -25px;
top: 50%;
left: 7px;
background-color: black;
}
</style>
</head>
<body>
<div class="phone">
<div class="screen">
<img src="img/Desert.jpg" alt="">
</div>
</div>
<!-- <div class="block relative">1</div>
<div class="block absolute">2</div>
<div class="block static">3</div>
<div class="block fixed">4</div> -->
</body>
</html>