0๐
โ
@media (max-width:400px) {
.padding {
padding: 1rem ;
}
.card {
height: 19rem; /* this code makes it possible */
top: -50px;
}
}
Adding height helped because after inspecting elements, the CSS affecting the the card was displayed and then with trial and error the desirable height was successfully implemented.
Source:stackexchange.com