Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how to keep all the nested content text of divs equal to each other if one div text increase?

i want that when i am running map on my mui card, few cards have more text content so they card length increase and other cards as well. but the texts inside cards dont stay equal to each other. i am attaching the screenshot of my actual app and codesandbox example as well.i am not getting exact results on google. i made a dummy example on codesandbox please look at the codesandbox example and i am also attaching my genuine app shot. if u help me to fix codesandbox then i will apply same logic in my genuine code. Note: i am using grids in my genuine code. Thanks
https://codesandbox.io/s/damp-glade-1tr91f?file=/demo.js

enter image description here
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Add this CSS to your Card components:

display: flex;
flex-direction: column;
justify-content: space-between;

https://codesandbox.io/s/gracious-kirch-qpo46y?file=/demo.js

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading