-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.css
66 lines (65 loc) · 1.08 KB
/
blog.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* CSS Styling */
.blog-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.blog-card {
width: 30%;
margin: 15px 0;
border: 1px solid #ccc;
padding: 15px;
box-sizing: border-box;
box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.blog-card img {
width: 100%;
height: auto;
}
.pagination {
margin-top: 20px;
text-align: center;
}
/* Modal Styling */
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow-y: auto;
background-color:rgba(0, 0,0,0.7);
}
.modal-content {
margin: 5% auto;
padding: 20px;
background-color: #fff;
width: 80%;
max-width: 800px;
border-radius: 10px;
position: relative;
}
.close {
color: #aaa;
position: absolute;
right: 20px;
top: 10px;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
cursor: pointer;
}
/* Additional styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
h2 {
margin-top: 0;
}