Basic use
example.css
.card {
background: #fff url(pattern.svg) center / cover;
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
}
Background and border properties control fills, images, border styles, rounded corners, and box shadows.
.card {
background: #fff url(pattern.svg) center / cover;
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
}.card {
background: #fff url(pattern.svg) center / cover;
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
}.card {
background: #fff url(pattern.svg) center / cover;
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
}Keep learning CSS.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful