A simple card
The most common component on the web.
CSS · A simple cardBeginner
.card {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 1.25rem;
box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 4px 12px rgb(0 0 0 / 0.06);
}
.card h3 { margin: 0 0 0.5rem; }
.card p { margin: 0; color: #4b5563; }cardborder-radiusshadowpadding