Center last row cards in Community section
- Change community-grid from CSS grid to flexbox - Add justify-content: center for centering - Add flex sizing for responsive card layout Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5cc31bd93d
commit
a4c304d287
11
index.html
11
index.html
|
|
@ -600,9 +600,16 @@
|
||||||
|
|
||||||
/* Community Section */
|
/* Community Section */
|
||||||
.community-grid {
|
.community-grid {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
flex-wrap: wrap;
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.community-grid .community-card {
|
||||||
|
flex: 0 1 calc(33.333% - 1.5rem);
|
||||||
|
min-width: 280px;
|
||||||
|
max-width: 380px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.community-card {
|
.community-card {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue