I'm looking for a solution to make the green cards that overflow the red area fit within it. Is there a way to divide the remaining cards into separate rows within the red area?
Here is the HTML code:
<div class="dash-card">
<div class="navbar">
...
</div>
</div>
And here is the CSS code:
body{
margin: 0;
padding: 0;
background-color: #121212;
}
.dash-card{
width: 95vw;
background-color: #21272f;
height: 95vh;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
position: absolute;
border-radius: 1rem;
display: flex;
}
.navbar{
width: 15%;
height: 100%;
...
.mini-card:hover{
background-color: #21272f;
color: #48bd9d;
border: solid .15rem #48bd9d;
}
I attempted using grid to organize them, but it made the layout look messy since the green cards weren't close together. I want them to be arranged closely like the green cards in the blue box. Any suggestions on achieving this?