Skip to content

Commit cf4b858

Browse files
Merge pull request #97 from Vedant1816/fix/fortune-cards-layout
Fixed-fortune-cards-layout
2 parents 0c50e8e + 87a43d8 commit cf4b858

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/styles/pages/activities/FortuneCard.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.FortuneCard {
22
text-align: center;
3-
margin: 20px;
3+
margin: 20px auto;
4+
max-width: 100%;
45
}
56

67
h1 {
@@ -24,6 +25,8 @@ h1 {
2425
display: flex;
2526
flex-wrap: wrap;
2627
justify-content: center;
28+
gap: 20px;
29+
width: 100%;
2730
}
2831

2932
.card {
@@ -33,11 +36,14 @@ h1 {
3336
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
3437
padding: 20px;
3538
margin: 10px;
36-
max-width: 300px;
3739
text-align: center;
3840
transition: transform 0.2s ease-in-out;
41+
flex: 1 1 280px;
42+
min-width: 260px;
43+
max-width: 320px;
3944
}
4045

46+
4147
.card:hover {
4248
transform: scale(1.05);
4349
background-color: #eaeaea;

0 commit comments

Comments
 (0)