6. Borders and rounded corners
ستتم ترجمة هذا المقال تلقائيًا. يُعرض بالإنجليزية حاليًا.
border takes a width, a style such as solid, dashed or dotted, and a colour. border-radius rounds the corners; 50% on a square makes a circle.
Small rounded corners make cards look modern.
عرض المثال
.card {
border: 1px solid #cbd5e1;
border-radius: 12px;
}
✍️ دورك الآن
Give .card a solid 1px grey border and a border-radius of 16px.