-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlesson_9-exercice-div_containers.html
93 lines (92 loc) · 2.32 KB
/
lesson_9-exercice-div_containers.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!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>Document</title>
<style>
div.profiles {
box-shadow: 0px 0px 7px rgb(100, 100, 100);
border-color: grey;
border-width: 1px;
width: 200px;
height: 320px;
display: inline-block;
margin-left: 10px;
}
img.profilepic {
width: 200px;
height: 200px;
object-fit: cover;
margin-bottom: 8px;
}
p {
font-family: Arial, Helvetica, sans-serif;
width: 200px;
margin-bottom: 7px;
margin-top: 7px;
display: inline-block;
padding-left: 8px;
}
p.name {
color: black;
font-weight: bold;
text-align: left;
}
p.mutualfriends {
color: rgb(112, 112, 112);
font-weight: lighter;
text-align: left;
}
button.addfriend {
background-color: rgb(0, 110, 236);
color: white;
cursor: pointer;
transition: opacity 0.2s;
margin-top: 8px;
margin-left: 8px;
text-align: center;
border: none;
border-radius: 3px;
width: 115px;
height: 30px;
}
button.addfriend:active {
opacity: 0.7;
}
</style>
</head>
<body>
<div class="profiles">
<img
class="profilepic"
src="thumbnails/lofi_image.png"
alt="profile image"
/>
<p class="name">Oliver Smith</p>
<p class="mutualfriends">2 mutual friends</p>
<button class="addfriend">Add Friend</button>
</div>
<div class="profiles">
<img
class="profilepic"
src="thumbnails/thumbnail-2.png"
alt="profile image"
/>
<p class="name">Ted Ned</p>
<p class="mutualfriends">200 mutual friends</p>
<button class="addfriend">Add Friend</button>
</div>
<div class="profiles">
<img
class="profilepic"
src="thumbnails/window_image.png"
alt="profile image"
/>
<p class="name">John Wayne</p>
<p class="mutualfriends">8 mutual friends</p>
<button class="addfriend">Add Friend</button>
</div>
</body>
</html>