lex; flex-direction: column; max-width: 400px; margin: 20px auto; border: 1px solid #dddddd; border-radius: 10px; overflow: hidden; background-color: #ffffff; } .card img { width: 100%; height: auto; border-radius: 10px 10px 0 0; } .card-text { padding: 20px; text-align: center; }