@parvathyvd
Posted
Hi,
Instead of giving height and width to the individual boxes give width to the parent.
cards { display: flex; justify-content: center; align-items: center; max-width: 50rem; margin: 0 auto; /* min-height: 100vh; //remove this } also remove width and heights from the boxes .box-1 ,2, 3{ /* height: 450px; / / width: 250px; }
That will fix your problem. Always try to use width instead of height. Let the padding, margins define their height. Hope this helps.
Thanks
Marked as helpful
@hellomarina
Posted
@parvathyvd Thank you for your feedback! I don't know what's wrong, I tried exactly what you told me but it looks really bad, the boxes lost their size and they went up to the top of the page so I don't know what I did wrong...
@MioMauro
Posted
@hellomarina In the third box (luxury) you have a one more text line. Try to set the lines all the same in all boxes
@hellomarina
Posted
@MioMauro Yes! I notice that. I tried to fix by increasing the size of the boxes and changing the margins of the buttons.