Starlit Daily

📚 › CSS: style and layout

6. Borders and rounded corners

Este artículo se traducirá automáticamente. Por ahora se muestra en inglés.

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.

Ver ejemplo

.card {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}

✍️ Ahora te toca

Give .card a solid 1px grey border and a border-radius of 16px.

← Volver al curso