-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (102 loc) · 2.86 KB
/
Copy pathindex.html
File metadata and controls
111 lines (102 loc) · 2.86 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
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Card Design</title>
<style>
*{
margin: 0;
padding: 0;
}
body{
font-family: Arial, sans-serif;
background-color:#f0f2f5;
padding: 40px;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.card{
background-color: #ffffff;
width: 300px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
border-radius: 15px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
padding: 0 0 20px 0;
margin: 4px;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.image{
padding: 5px;
}
.image img{
border-radius: 7px;
width: 100%;
height: 200px;
object-fit: cover;
}
.content{
padding:16px;
}
.content p{
font-size: 14px;
color: #555555;
line-height: 1.5;
margin-bottom: 15px;
}
.capsules{
padding: 0 28px 0 14px;
}
.capsules span{
display: inline-block;
background-color: #e0efff;
color: #0077ff;
padding: 4px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: bold;
margin-right: 8px;
}
.button{
text-align: center;
}
.button button{
padding: 7px 15px;
border-radius: 15px;
background-color: rgb(216, 236, 253);
color: rgb(14, 150, 234);
font-size: 15px;
margin-top: 7px;
border: none;
font-weight: bold;
cursor: pointer;
}
.button button:hover{
background-color: rgb(194, 225, 246);
color: rgb(10, 136, 214);
}
</style>
</head>
<body>
<div class="card">
<div class="image">
<img width="188" src="pic.jpg" alt="">
</div>
<div class="capsules">
<span>Nature</span>
<span>Lake</span>
</div>
<div class="content">
<h2>Aditya</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quas nemo numquam vel cumque ullam alias sequi suscipit velit! Enim cumque aperiam tempore tenetur?</p>
</div>
<div class="button">
<button><a href="https://www.natureweb.net/">Read More</a></button>
</div>
</div>