Starlit Daily

📚 › CSS: style and layout

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.

← कोर्स पर वापस