-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsub_events-wedding.css
56 lines (48 loc) · 1.06 KB
/
sub_events-wedding.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
body{
background-image: url('./images/bg5.jpg');
background-size: cover;
}
.container {
position: relative;
width: 100%;
display: flex;
flex-direction: column;
}
.heading {
font-size: 32px;
color: #f0eaea;
margin: 20px auto;
text-align: center;
}
.events {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
overflow-y: auto; /* Enable vertical scrolling if needed */
max-height: calc(100vh - 100px); /* Adjust to account for other content */
}
.event {
width: calc(25% - 40px); /* 4 events per row with spacing */
margin: 20px;
text-align: center;
}
.event img {
width: 100%; /* Adjust image width as needed */
height: auto;
transition: transform 0.3s; /* Apply smooth transition */
border: 2px solid #f0eaea;
border-radius: 25px;
padding: auto;
}
.event img:hover {
transform: scale(1.1); /* Zoom in slightly on hover */
}
.event-info {
margin-top: 10px;
}
.event-info h3 {
margin: 0;
font-size: 18px;
color: #f2e7e7;
}