+ 1

Card panels not same height and in not in rows

How can I make the panels in rows and the same height? I set a height and the white-space: nowrap but it still won't work. How can I fix this? https://code.sololearn.com/W7Z3tPVr08HK/?ref=app

1st Aug 2020, 8:03 AM
Clueless Coder
Clueless Coder - avatar
4 ответов
+ 2
The favourites div is nested inside of the helpful div, this is the reason why there is a second row. A couple of other things I notice the app div does not have a closing tag and the first set of p tags are wrapped around the button element while the second set is not this probably causing some issues also.
1st Aug 2020, 1:35 PM
ODLNT
ODLNT - avatar
+ 2
ODLNT Thanks, all fixed except the third panel, I'll look into it.
1st Aug 2020, 1:43 PM
Clueless Coder
Clueless Coder - avatar
+ 1
ODLNT Odd. Console logged the height attributes, they're all 320px yet the third is obviously shorter
1st Aug 2020, 1:47 PM
Clueless Coder
Clueless Coder - avatar
+ 1
The cards are only taking as much space as it needs, looking at the third card it has less text than the others hence the shorter card. One solution is to set the height of the text div
1st Aug 2020, 1:56 PM
ODLNT
ODLNT - avatar