@sivakumars
Posted
Hi, @CosmicGarou18.
To directly address the question, the solution would be to remove the height
property from the .main
class and the box will grow based on the viewport size on smaller screens.
On the other hand, it is better to not let the card shrink below a min-width
, say about 20rem. Also, for images, it is usually good to have height
set to auto
, so that the aspect-ratio of the image is maintained.
I hope I have addressed your issue. Please let me know if this helped.