4,554
edits
No edit summary |
No edit summary |
||
Line 780: | Line 780: | ||
/* Styling for Community */ | /* Styling for Community */ | ||
#community-list { | #community-list { | ||
display: | display: grid; | ||
grid-template-columns: repeat(5, 1fr); /* Creates 5 equal columns */ | |||
grid-gap: 1px; /* Adjust gap between rows and columns */ | |||
position: absolute; | position: absolute; | ||
top: 538px; | top: 538px; | ||
} | } | ||
.community-card { | .community-card { | ||
box-sizing: border-box; | box-sizing: border-box; | ||
border-bottom: 1px solid black; | border-bottom: 1px solid black; | ||
border-right: 1px solid black; | |||
height: fit-content; | height: fit-content; | ||
padding: 5px 7px 2px 7px; | padding: 5px 7px 2px 7px; | ||
font-size: 12pt; | font-size: 12pt; | ||
line-height: 25px; | line-height: 25px; | ||
Line 799: | Line 799: | ||
} | } | ||
.community-card: | #community-list .community-card:nth-child(-n+5) { | ||
border-top: 1px solid black; | |||
} | } | ||
.community-card:nth-child(5n | /* Optional: Clear right border on the last item of each row */ | ||
.community-card:nth-child(5n) { | |||
border-right: none; | |||
} | } |