-
Notifications
You must be signed in to change notification settings - Fork 0
/
card1.html
70 lines (67 loc) · 1.76 KB
/
card1.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
<!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>QR card</title>
<style>
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
.container{
height: 100vh;
width: 100vw;
background: pink;
display: flex;
justify-content: center;
align-items: center;
}
.card{
width: 330px;
height: 500px;
background-color: white;
border-radius: 20px;
display: flex;
flex-direction: column;
gap: 20px;
align-items: center;
padding: 20px;
border: 1px solid black;
transition: all 3s linear 1s;
}
.card:hover{
transform:scale(1.3);
}
img{
height: 290px;
width: 290px;
border-radius: 10px;
border: 1px solid black;
transition: all 3s linear 1s;
}
img:hover{
transform:scale(1.3);
}
h2{
font-weight: bold;
font-size: 1.7rem;
}
p{
font-size: 1.2em;
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<img src="linkedin.png" alt="linkedin">
<h2>Scan the QR code for my linkedin!
</h2>
<p>This is my card project made using css. I have to make many projects to master css.</p>
</div>
</div>
</body>
</html>