4,090
edits
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
.list { | .list { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
max-width: | max-width: 1000px; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
.card { | .card { | ||
width: calc(20% - 2px); | width: calc(20% - 2px); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
border: 1px solid black; | border: 1px solid black; | ||
margin-left: -1px; | margin-left: -1px; /* Compensate for the double borders */ | ||
transform: translateX(-1px); | transform: translateX(-1px); /* Move the box 1px to the left */ | ||
height: fit-content; | height: fit-content; | ||
padding: 5px; | padding: 5px; |