Cards in a grid view
Do i need to specify the height of a card when I'm using the grid layout or should I let browser decide it , I'm using MUI grid layout
6 Replies
unless you have a very explicit reason to set a height, you should try to avoid it
setting heights is a really easy way to break your layout if the content doesn't match what you expected in testing, or if it's displayed on a different screen size
if you have to, set a min-height instead of a height
Is it okay if i increase the space between top icon and the bottom text to reach a defult height ?
not really sure what you're asking
Would it be acceptable to adjust the spacing between the top icon and the bottom text in order to maintain a consistent default height for the card layout?
if you want a consistent minimum height, I'd suggest using min-height on the card and display: flex to position the items how you want them
Alright. Thanks