4,554
edits
No edit summary |
No edit summary |
||
Line 780: | Line 780: | ||
/* Styling for Community */ | /* Styling for Community */ | ||
#community-list { | #community-list { | ||
display: grid; | |||
grid-template-columns: repeat(5, 1fr); /* Creates 5 columns with equal width */ | |||
grid-gap: 10px; /* Sets the gap between grid items */ | |||
position: absolute; | position: absolute; | ||
top: 538px; | top: 538px; | ||
margin: 0 auto; | margin: 0 auto; | ||
width: 100%; /* Adjust this width as necessary */ | |||
} | } | ||
Line 796: | Line 794: | ||
letter-spacing: 0.4px; | letter-spacing: 0.4px; | ||
cursor: pointer; | cursor: pointer; | ||
padding: 5px 7px 2px 7px; | |||
border-top: 1px solid black; | |||
border-bottom: 1px solid black; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
#community-list .community-card: | /* Optionally, if you want to remove the top border from all cards except the ones in the first row */ | ||
border- | #community-list .community-card:nth-child(-n+5) { | ||
border-top: none; | |||
} | } |