Recently, I created cards for my team members, but encountered layout issues despite using CSS Flexbox and CSS3 Grid. Although both are supported by my browser, the problem persists. However, the layout works perfectly on mobile devices!
I experimented with flex: 2 0 100%;
And also tried
display: grid;
grid-template-columns: repeat(470px, 1fr);
grid-auto-rows: auto;
grid-gap: 1em;
Are there any viable solutions to resolve this issue?
.cards2 {
font-size: 11px;
width: 100%;
height: auto;
padding: 1em 0;
}
... (CSS code snippet continues)